Skip to content

Explore Page #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 25, 2025
Merged
2 changes: 1 addition & 1 deletion .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/near-rewards.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: NEAR Protocol Rewards Tracking
on:
schedule:
- cron: '0 */12 * * *' # Every 12 hours
workflow_dispatch: # Manual trigger
- cron: "0 */12 * * *" # Every 12 hours
workflow_dispatch: # Manual trigger
push:
branches: [ main ] # Start on main branch updates
branches: [main] # Start on main branch updates

jobs:
calculate-rewards:
Expand All @@ -17,12 +17,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: "18"

- name: Calculate Rewards
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
run: |
npm install -g near-protocol-rewards@latest
near-protocol-rewards calculate
near-protocol-rewards calculate
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,31 +78,31 @@ graph TD
style Telegram color:black
style LinkedIn color:black
end

%% Submission Processing
subgraph Submission["Submission Processing"]
SubmissionService["Submission Service"]
Moderation["Curator Moderation"]
style SubmissionService color:black
style Moderation color:black
end

%% Content Processing
subgraph Processing["Content Processing"]
ProcessorService["Processor Service"]
GlobalTransform["Global Transformations"]
style ProcessorService color:black
style GlobalTransform color:black
end

%% Distribution
subgraph Distribution["Distribution"]
DistributionService["Distribution Service"]
DistTransform["Distributor-specific Transforms"]
style DistributionService color:black
style DistTransform color:black
end

%% Distributor Plugins
subgraph Distributors["Distributor Plugins"]
TelegramDist["Telegram"]
Expand All @@ -114,7 +114,7 @@ graph TD
style Notion color:black
style Supabase color:black
end

%% Flow connections
Sources --> SubmissionService
SubmissionService --> Moderation
Expand All @@ -123,12 +123,12 @@ graph TD
GlobalTransform --> DistributionService
DistributionService --> DistTransform
DistTransform --> Distributors

%% Styling
classDef service fill:#f9f,stroke:#333,stroke-width:2px
classDef plugin fill:#bbf,stroke:#333,stroke-width:1px
classDef process fill:#bfb,stroke:#333,stroke-width:1px

class SubmissionService,ProcessorService,DistributionService service
class Twitter,Telegram,LinkedIn,TelegramDist,RSS,Notion,Supabase plugin
class Moderation,GlobalTransform,DistTransform process
Expand All @@ -137,6 +137,7 @@ graph TD
### Key Components

- **[Frontend](./frontend/README.md)**

- React-based web interface
- Built with RSBuild and Tailwind CSS
- Handles user interactions and submissions
Expand Down
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ graph TD
Services --> DistributionService["Distribution Service"]
Services --> ConfigService["Configuration Service"]
Services --> PluginLoader["Plugin Loader Service"]

style Server color:white
style Services color:white
style SubmissionService color:white
Expand Down
3 changes: 3 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,19 @@
The frontend leverages modern web technologies for optimal performance and developer experience:

- **Framework**: [React](https://reactjs.org) + TypeScript

- Component-based architecture
- Strong type safety
- Excellent ecosystem support

- **Build Tool**: [RSBuild](https://rsbuild.dev/)

- High-performance build system
- Optimized production builds
- Modern development experience

- **Styling**: [Tailwind CSS](https://tailwindcss.com)

- Utility-first CSS framework
- Highly customizable
- Zero runtime overhead
Expand Down
Binary file modified frontend/bun.lockb
Binary file not shown.
21 changes: 21 additions & 0 deletions frontend/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": false,
"prefix": ""
},
"aliases": {
"components": "src/components",
"utils": "src/lib/utils",
"ui": "src/components/ui",
"lib": "src/lib",
"hooks": "src/hooks"
},
"iconLibrary": "lucide"
}
10 changes: 2 additions & 8 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,8 @@
name="twitter:description"
content="Curate news directly on socials and turn feeds into regular content."
/>
<meta
property="og:image"
content="https://curate.fun/meta.png"
/>
<meta
property="twitter:image"
content="https://curate.fun/meta.png"
/>
<meta property="og:image" content="https://curate.fun/meta.png" />
<meta property="twitter:image" content="https://curate.fun/meta.png" />
<meta name="theme-color" content="#ffffff" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
Expand Down
14 changes: 13 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,28 @@
"lint": "eslint ."
},
"dependencies": {
"@radix-ui/react-avatar": "^1.1.3",
"@radix-ui/react-dialog": "^1.1.6",
"@radix-ui/react-dropdown-menu": "^2.1.6",
"@radix-ui/react-popover": "^1.1.6",
"@radix-ui/react-slot": "^1.1.2",
"@tailwindcss/typography": "^0.5.15",
"@tanstack/react-query": "^5.64.1",
"@tanstack/react-router": "^1.114.15",
"autoprefixer": "^10.4.20",
"axios": "^1.7.9",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.0.0",
"lucide-react": "^0.483.0",
"postcss": "^8.4.49",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.4.0",
"tailwindcss": "^3.4.16"
"tailwind-merge": "^3.0.2",
"tailwindcss": "^3.4.16",
"tailwindcss-animate": "^1.0.7",
"zustand": "^5.0.3"
},
"devDependencies": {
"@curatedotfun/types": "^0.0.5",
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/site.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
}
10 changes: 10 additions & 0 deletions frontend/src/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar";

export function AvatarDemo() {
return (
<Avatar className="w-4 h-4 rounded-full">
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
);
}
Loading