Repository: antfu-collective/vitesse Branch: main Commit: 8a01bc9283fe Files: 75 Total size: 102.7 KB Directory structure: gitextract_7rc8tos6/ ├── .dockerignore ├── .editorconfig ├── .github/ │ ├── FUNDING.yml │ └── workflows/ │ └── ci.yml ├── .gitignore ├── .npmrc ├── .vscode/ │ ├── extensions.json │ └── settings.json ├── Dockerfile ├── LICENSE ├── README.md ├── README.zh-CN.md ├── cypress/ │ ├── e2e/ │ │ └── basic.spec.ts │ └── tsconfig.json ├── cypress.config.ts ├── eslint.config.js ├── index.html ├── locales/ │ ├── README.md │ ├── ar.yml │ ├── de.yml │ ├── en.yml │ ├── es.yml │ ├── fr.yml │ ├── id.yml │ ├── it.yml │ ├── ja.yml │ ├── ka.yml │ ├── ko.yml │ ├── pl.yml │ ├── pt-BR.yml │ ├── ru.yml │ ├── tr.yml │ ├── uk.yml │ ├── uz.yml │ ├── vi.yml │ └── zh-CN.yml ├── netlify.toml ├── package.json ├── pnpm-workspace.yaml ├── public/ │ └── _headers ├── src/ │ ├── App.vue │ ├── auto-imports.d.ts │ ├── components/ │ │ ├── README.md │ │ ├── TheCounter.vue │ │ ├── TheFooter.vue │ │ └── TheInput.vue │ ├── components.d.ts │ ├── composables/ │ │ └── dark.ts │ ├── layouts/ │ │ ├── 404.vue │ │ ├── README.md │ │ ├── default.vue │ │ └── home.vue │ ├── main.ts │ ├── modules/ │ │ ├── README.md │ │ ├── i18n.ts │ │ ├── nprogress.ts │ │ ├── pinia.ts │ │ └── pwa.ts │ ├── pages/ │ │ ├── README.md │ │ ├── [...all].vue │ │ ├── about.md │ │ ├── hi/ │ │ │ └── [name].vue │ │ └── index.vue │ ├── route-map.d.ts │ ├── shims.d.ts │ ├── stores/ │ │ └── user.ts │ ├── styles/ │ │ ├── main.css │ │ └── markdown.css │ └── types.ts ├── test/ │ ├── __snapshots__/ │ │ └── component.test.ts.snap │ ├── basic.test.ts │ └── component.test.ts ├── tsconfig.json ├── uno.config.ts └── vite.config.ts ================================================ FILE CONTENTS ================================================ ================================================ FILE: .dockerignore ================================================ node_modules dist ================================================ FILE: .editorconfig ================================================ root = true [*] charset = utf-8 indent_style = space indent_size = 2 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true ================================================ FILE: .github/FUNDING.yml ================================================ open_collective: antfu github: [antfu] ================================================ FILE: .github/workflows/ci.yml ================================================ name: CI on: push: branches: - main pull_request: branches: - main jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v3 - uses: actions/setup-node@v4 with: node-version: lts/* cache: pnpm - name: Install run: pnpm install - name: Lint run: pnpm run lint typecheck: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v3 - uses: actions/setup-node@v4 with: node-version: lts/* cache: pnpm - name: Install run: pnpm install - name: Typecheck run: pnpm run typecheck test: runs-on: ${{ matrix.os }} strategy: matrix: node-version: [20.x, 22.x] os: [ubuntu-latest] fail-fast: false steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org/ cache: pnpm - run: pnpm install - run: pnpm run test:unit test-e2e: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 with: path: | ~/.cache key: cypress-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} - uses: pnpm/action-setup@v3 - name: Use Node.js uses: actions/setup-node@v4 with: node-version: lts/* registry-url: https://registry.npmjs.org/ cache: pnpm - run: pnpm install - name: Cypress PNPM Patch run: cp pnpm-lock.yaml package-lock.json - name: Cypress uses: cypress-io/github-action@v6 with: install-command: echo build: pnpm run build start: npx vite preview --port 3333 ================================================ FILE: .gitignore ================================================ .DS_Store .vite-ssg-dist .vite-ssg-temp *.local dist dist-ssr node_modules .idea/ *.log cypress/downloads public/assets/fonts ================================================ FILE: .npmrc ================================================ shamefully-hoist=true ================================================ FILE: .vscode/extensions.json ================================================ { "recommendations": [ "antfu.iconify", "antfu.unocss", "antfu.vite", "antfu.goto-alias", "csstools.postcss", "dbaeumer.vscode-eslint", "vue.volar", "lokalise.i18n-ally", "streetsidesoftware.code-spell-checker" ] } ================================================ FILE: .vscode/settings.json ================================================ { "cSpell.words": ["Vitesse", "Vite", "unocss", "vitest", "vueuse", "pinia", "demi", "antfu", "iconify", "intlify", "vitejs", "unplugin", "pnpm"], "i18n-ally.sourceLanguage": "en", "i18n-ally.keystyle": "nested", "i18n-ally.localesPaths": "locales", "i18n-ally.sortKeys": true, // Disable the default formatter "prettier.enable": false, "editor.formatOnSave": false, // Auto fix "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", "source.organizeImports": "never" }, // Silent the stylistic rules in you IDE, but still auto fix them "eslint.rules.customizations": [ { "rule": "style/*", "severity": "off" }, { "rule": "format/*", "severity": "off" }, { "rule": "*-indent", "severity": "off" }, { "rule": "*-spacing", "severity": "off" }, { "rule": "*-spaces", "severity": "off" }, { "rule": "*-order", "severity": "off" }, { "rule": "*-dangle", "severity": "off" }, { "rule": "*-newline", "severity": "off" }, { "rule": "*quotes", "severity": "off" }, { "rule": "*semi", "severity": "off" } ], // The following is optional. // It's better to put under project setting `.vscode/settings.json` // to avoid conflicts with working with different eslint configs // that does not support all formats. "eslint.validate": [ "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "html", "markdown", "json", "jsonc", "yaml" ] } ================================================ FILE: Dockerfile ================================================ FROM node:20-alpine AS build-stage WORKDIR /app RUN corepack enable COPY .npmrc package.json pnpm-lock.yaml pnpm-workspace.yaml ./ RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \ pnpm install --frozen-lockfile COPY . . RUN pnpm build FROM nginx:stable-alpine AS production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2020-PRESENT Anthony Fu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================
Mocking up web app with Vitesse(speed)
English | 简体中文