Skip to content

Commit

Permalink
(ci) vup and ignore the 3rd party vendo
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Sep 7, 2024
1 parent 4af504d commit 75cdb30
Show file tree
Hide file tree
Showing 8 changed files with 543 additions and 395 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/coveritup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
command: cd frontend; npm install
record: runtime

- name: Astro Check
uses: kevincobain2000/action-coveritup@v2
with:
type: astro-warnings
command: cd frontend; npm run check

- name: NPM Build
uses: kevincobain2000/action-coveritup@v2
with:
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,22 @@ func main() {
- **fmt, stdout:** For embedded use, fmt and stdout logs are not intercepted.

**Tip:** If you want to capture, then run your app by piping output as `./app >> logs.log`.


## Development Notes

```sh
# Get some fake logs
mkdir -p testdata
while true; do date >> testdata/test.log; sleep 1; done

# Start the API
cd frontend
go run main.go --cors=4321 --open=false -f="../testdata/*log"
# API development on http://localhost:3003/api

# Start the frontend
npm install
npm run dev
# Frontend development on http://localhost:4321/
```
6 changes: 3 additions & 3 deletions frontend/dist/index.html

Large diffs are not rendered by default.

877 changes: 496 additions & 381 deletions frontend/package-lock.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"check": "astro check",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.2",
"@astrojs/check": "^0.9.3",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.13.2",
"astro": "^4.15.4",
"astro-single-file": "^1.1.0",
"html-minifier-terser": "^7.2.0",
"tailwindcss": "^3.4.9",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.20.0"
"@rollup/rollup-linux-x64-gnu": "4.21.2"
}
}
9 changes: 5 additions & 4 deletions frontend/src/components/Alpine.astro

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions frontend/src/components/JS.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
const i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
}


function numberToK(number) {
return number > 999 ? (number / 1000).toFixed(1) + "k" : number;
}

function timeago(str) {
if (!str) return "";
date = new Date(str);
Expand Down
7 changes: 5 additions & 2 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
]
},
"jsx": "react-jsx",
"jsxImportSource": "react"
}
"jsxImportSource": "react",
},
"exclude": [
"src/components/Alpine.astro",
]
}

0 comments on commit 75cdb30

Please sign in to comment.