Skip to content

Commit 9294909

Browse files
authored
Updates and Fix Scrolling (#12)
1 parent 770fc5d commit 9294909

14 files changed

Lines changed: 257 additions & 242 deletions

File tree

‎.github/FUNDING.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: cssnr

‎.github/actionlint.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ paths:
44
- '"inputs" section is alias node but mapping node is expected'
55
- '"paths" section must be sequence node but got alias node with "" tag'
66
- '"paths-ignore" section must be sequence node but got alias node with "" tag'
7+
.github/workflows/issue.yaml:
8+
ignore:
9+
- 'missing input "app-id" which is required by action "actions/create-github-app-token@v3"'
10+
- 'input "client-id" is not defined in action "actions/create-github-app-token@v3"'
11+
.github/workflows/test.yaml:
12+
ignore:
13+
- 'property ".+" is not defined in object type'

‎.github/workflows/issue.yaml‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Issue"
1+
name: "AI Issue"
22

33
on:
44
issues:
@@ -9,10 +9,12 @@ jobs:
99
name: "Issue"
1010
if: ${{ !github.event.issue.type || github.event.issue.type.name == 'Bug' }}
1111
runs-on: ubuntu-latest
12-
timeout-minutes: 5
12+
timeout-minutes: 15
13+
1314
permissions:
1415
contents: write
1516
issues: write
17+
1618
steps:
1719
- name: "Checkout"
1820
uses: actions/checkout@v6
@@ -21,22 +23,22 @@ jobs:
2123
id: app
2224
uses: actions/create-github-app-token@v3
2325
with:
24-
app-id: 146360
26+
client-id: ${{ vars.APP_CLIENT_ID }}
2527
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2628

2729
- name: "AI Issue"
28-
uses: smashedr/ai-issue-action@master
30+
uses: cssnr/ai-issue-action@v1
2931
env:
3032
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
3133
with:
3234
token: ${{ steps.app.outputs.token }}
3335
model: gemini-2.5-flash
36+
tail: |
37+
_Response generated by the [AI Issue Action](https://github.com/cssnr/ai-issue-action)._
3438
instructions: |
3539
You are a helpful assistant responding to a GitHub Issue created by user @${{ github.actor }}
3640
in the repository ${{ github.server_url }}/${{ github.repository }}
3741
Provide initial triage and troubleshooting steps, then gather any additional information needed to proceed.
3842
Respond using your general knowledge and the following knowledge files:
39-
file: |
43+
path: |
4044
README.md
41-
tail: |
42-
_Response generated by the [AI Issue Action](https://github.com/smashedr/ai-issue-action)._

‎.github/workflows/lint.yaml‎

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: "Lint"
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [master]
6+
branches: [master, main]
77
pull_request:
8-
branches: [master]
8+
branches: [master, main]
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
@@ -14,9 +14,9 @@ concurrency:
1414
jobs:
1515
lint:
1616
name: "Lint"
17-
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
1817
runs-on: ubuntu-latest
1918
timeout-minutes: 5
19+
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
2020

2121
steps:
2222
- name: "Checkout"
@@ -31,29 +31,26 @@ jobs:
3131
GITHUB_CTX: ${{ toJSON(github) }}
3232
run: echo "$GITHUB_CTX"
3333

34-
- name: "Setup Node 24"
34+
- name: "Setup Node"
3535
uses: actions/setup-node@v6
3636
with:
3737
node-version: 24
3838

3939
- name: "Install"
40-
run: |
41-
npm ci
40+
id: install
41+
run: npm ci
4242

43-
- name: "Build"
44-
if: ${{ !cancelled() }}
45-
run: |
46-
npm run build
43+
- name: "Debug"
44+
continue-on-error: true
45+
run: ls -lahR dist
4746

4847
- name: "eslint"
4948
if: ${{ !cancelled() }}
50-
run: |
51-
npm run lint:check
49+
run: npm run lint
5250

5351
- name: "prettier"
5452
if: ${{ !cancelled() }}
55-
run: |
56-
npm run prettier:check
53+
run: npm run prettier:check
5754

5855
- name: "yamllint"
5956
if: ${{ !cancelled() }}

‎.github/workflows/pages.yaml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Pages"
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [master]
6+
branches: [master, main]
77
paths:
88
- ".github/workflows/pages.yaml"
99
- "public/**"
@@ -24,16 +24,15 @@ concurrency:
2424
jobs:
2525
build:
2626
name: "Build"
27-
if: ${{ !contains(github.event.head_commit.message, '#nodeploy') || github.actor != 'dependabot[bot]' }}
27+
if: ${{ !contains(github.event.head_commit.message, '#nodeploy') }}
2828
uses: cssnr/workflows/.github/workflows/npm-build.yaml@master
2929
permissions:
3030
contents: read
3131
with:
3232
build: "npm run build"
3333
path: "dist"
3434
pages: true
35-
secrets:
36-
webhook: ${{ secrets.DISCORD_WEBHOOK }}
35+
secrets: inherit
3736

3837
deploy:
3938
name: "Deploy"
@@ -54,7 +53,7 @@ jobs:
5453
id: deployment
5554
uses: actions/deploy-pages@v5
5655

57-
- name: "Send Discord Notification"
56+
- name: "Send Deploy Notification"
5857
if: ${{ !cancelled() }}
5958
continue-on-error: true
6059
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0

‎.github/workflows/preview.yaml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Preview"
33
on:
44
workflow_dispatch:
55
push:
6-
branches-ignore: [master]
6+
branches-ignore: [master, legacy]
77
paths:
88
- ".github/workflows/preview.yaml"
99
- "public/**"
@@ -27,8 +27,7 @@ jobs:
2727
with:
2828
build: "npm run build"
2929
path: "dist"
30-
secrets:
31-
webhook: ${{ secrets.DISCORD_WEBHOOK }}
30+
secrets: inherit
3231

3332
deploy:
3433
name: "Deploy"

‎.github/yamllint.yaml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
extends: relaxed
22

3-
ignore:
4-
- "node_modules/"
3+
ignore-from-file: .gitignore
54

65
rules:
76
line-length:
8-
max: 119
7+
max: 120

‎.prettierignore‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
.github/pull_request_template.md
1+
# Tools
2+
dist/
23
package-lock.json
4+
5+
# Files
6+
.github/disabled/
7+
.github/PULL_REQUEST_TEMPLATE/
8+
.github/pull_request_template.md

‎AGENTS.md‎

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,37 @@
11
# Agents - cssnr-vue (cssnr.github.io)
22

3+
Before answering any question that involves facts about ANYTHING, you MUST output at least one Read, WebFetch, or WebSearch tool call.
4+
If your first output is text instead of a tool call, you have failed.
5+
36
Vue 3 SPA — GitHub Pages org site showcasing CSSNR projects.
47

58
Production Site: https://cssnr.github.io/
69

710
## Commands
811

9-
| Command | Action |
10-
| ------------------------ | ---------------------------------- |
11-
| `npm run dev` | Dev server at localhost:5173 |
12-
| `npm run tsc` | TypeScript check `vue-tsc --build` |
13-
| `npm run build` | `tsc` then `vite-ssg build` |
14-
| `npm run lint` | ESLint Write `--cache --fix` |
15-
| `npm run lint:check` | ESLint Check |
16-
| `npm run prettier` | Prettier Write |
17-
| `npm run prettier:check` | Prettier Check |
18-
19-
Run `lint` before `tsc` before `build`. No test framework exists.
20-
21-
## Config & formatting
22-
23-
- ESLint: flat config at `eslint.config.ts` (ESLint 10)
24-
- Prettier: `.prettierrc.json` — no semis, single quotes, `.vue` printWidth 120, `.js` tabWidth 4
25-
- Lint CI checks: `lint:check` + `prettier:check` + yamllint + actionlint
26-
- Path alias `@/` → `src/`
27-
28-
| Script | Command |
29-
| ---------- | ------------------------------------- |
30-
| yamllint | `yamllint -c .github/yamllint.yaml .` |
31-
| actionlint | `actionlint` |
12+
| Command | Action |
13+
| -------------------- | ---------------------------------- |
14+
| `npm run dev` | Dev server at localhost:5173 |
15+
| `npm run tsc` | TypeScript check `vue-tsc --build` |
16+
| `npm run build` | `tsc` then `vite-ssg build` |
17+
| `npm run lint` | ESLint Write `--cache --fix` |
18+
| `npm run lint:check` | ESLint Check |
19+
| `npm run prettier` | ALWAYS RUN AFTER EDITING FILES |
3220

3321
## Architecture
3422

3523
- `src/config/apps.ts` — list of apps
3624
- `src/router/index.ts` — vue router
25+
- `src/components` - Vue Components
26+
- `src/views` - Main Views (Pages)
3727

38-
## Environment
39-
40-
Copy `.env` from the template (not committed). Vars are `VITE_TITLE`, `VITE_*_URL`, etc. Injected via `%VITE_TITLE%` in `index.html` and `import.meta.env.VITE_*` in code.
41-
42-
## CI
28+
## Frameworks
4329

44-
Workflows in: `.github/workflows`
30+
- Bootstrap 5.3
31+
- Fontawesome
32+
- Animate.css
33+
- AOS (Animate On Scroll)
4534

46-
- `pages.yaml`: push to `master` → npm build → deploy to GitHub Pages
47-
- `preview.yaml`: push non-master → npm build → deploy to `https://dev-static.cssnr.com/`
48-
- `lint.yaml`: push/PR to master → lint check
49-
50-
## Notes
35+
## Environment
5136

52-
- Node: `^20.19.0 || >=22.12.0`, package manager: npm
53-
- `src/config/**` marked `linguist-vendored` in `.gitattributes`
54-
- `vite.config.ts` sets `server.allowedHosts: true` and `base` is unset (default `/` for GitHub Pages)
37+
Copy `.env` from the template (not committed). Vars are `VITE_TITLE`, `VITE_*_URL`, etc. Injected via `%VITE_TITLE%` in `index.html` and `import.meta.env.VITE_*` in code.

0 commit comments

Comments
 (0)