diff --git a/.github/labeler.yml b/.github/labeler.yml index 725496e..538ef2f 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -3,3 +3,4 @@ components: components/** server: server/** pages: pages/** public: public/** +lib: lib/** diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e1c8d2..8d2b810 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,17 @@ jobs: username: ${{github.actor}} password: ${{secrets.GITHUB_TOKEN}} + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: '20' + - name: Install pnpm + run: npm install -g pnpm + - name: Install dependencies + run: pnpm install + - name: Prebuild static files + run: pnpm generate && mv .output .output-prebuild + - uses: mr-smithers-excellent/docker-build-push@v6 id: docker_build with: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f080170..d6197a0 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -26,6 +26,17 @@ jobs: username: ${{github.actor}} password: ${{secrets.GITHUB_TOKEN}} + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: '20' + - name: Install pnpm + run: npm install -g pnpm + - name: Install dependencies + run: pnpm install + - name: Prebuild static files + run: pnpm generate && mv .output .output-prebuild + - uses: mr-smithers-excellent/docker-build-push@v6 id: docker_build with: diff --git a/.gitignore b/.gitignore index 1e5da60..479255d 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ logs !.env.example db.sqlite +.output-prebuild diff --git a/Dockerfile b/Dockerfile index 5cba9c0..1100a52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,16 +14,10 @@ ENV NUXT_APP_BASE_URL=$NUXT_APP_BASE_URL RUN pnpm build RUN cp -rL .output /app/SERVER_OUTPUT -RUN pnpm generate +RUN test -d .output-prebuilt || pnpm generate +RUN test -d .output-prebuilt && rm .output && mv .output-prebuilt .output || true RUN cp -rL .output/public /app/CLIENT_OUTPUT -RUN mkdir /app/SERVER_OUTPUT/public/node_modules && \ - mkdir /app/CLIENT_OUTPUT/node_modules && \ - cp -rL node_modules/monaco-editor-workers /app/SERVER_OUTPUT/public/node_modules/monaco-editor-workers && \ - cp -rL node_modules/monaco-editor /app/SERVER_OUTPUT/public/node_modules/monaco-editor && \ - cp -rL node_modules/monaco-editor-workers /app/CLIENT_OUTPUT/node_modules/monaco-editor-workers && \ - cp -rL node_modules/monaco-editor /app/CLIENT_OUTPUT/node_modules/monaco-editor - ### Production Image FROM node:20-alpine LABEL maintainer="Joschua Becker EDV " diff --git a/assets/css/scrollbar.css b/assets/css/scrollbar.css new file mode 100644 index 0000000..e4b1256 --- /dev/null +++ b/assets/css/scrollbar.css @@ -0,0 +1,28 @@ + +* { + --sb-track-color: #000; + --sb-thumb-color: #fff; + --sb-size: 8px; +} + +*::-webkit-scrollbar { + width: var(--sb-size) +} + +*::-webkit-scrollbar-track { + background: var(--sb-track-color); + border-radius: 0; +} + +*::-webkit-scrollbar-thumb { + background: var(--sb-thumb-color); + border-radius: 0; + +} + +@supports not selector(::-webkit-scrollbar) { + body { + scrollbar-color: var(--sb-thumb-color) + var(--sb-track-color); + } +} diff --git a/components/editor.vue b/components/editor.vue index 108c121..9240549 100644 --- a/components/editor.vue +++ b/components/editor.vue @@ -1,60 +1,129 @@ diff --git a/components/gh-badge.vue b/components/gh-badge.vue index 5592fe2..d7fee3f 100644 --- a/components/gh-badge.vue +++ b/components/gh-badge.vue @@ -1,7 +1,7 @@