commit 836665f1ed5093258fe9f47a5bbc38463604bcdc Author: Yro Boros Date: Sat Jan 31 19:51:16 2026 +1000 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7414e0e --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo + +.eslintcache + +# Cypress +/cypress/videos/ +/cypress/screenshots/ + +# Vitest +__screenshots__/ + +test-results/ +playwright-report/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..928458f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "Vue.volar", + "ms-playwright.playwright" + ] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..12ad275 --- /dev/null +++ b/README.md @@ -0,0 +1,57 @@ +# test + +This template should help get you started developing with Vue 3 in Vite. + +## Recommended IDE Setup + +[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). + +## Recommended Browser Setup + +- Chromium-based browsers (Chrome, Edge, Brave, etc.): + - [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd) + - [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters) +- Firefox: + - [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/) + - [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/) + +## Customize configuration + +See [Vite Configuration Reference](https://vite.dev/config/). + +## Project Setup + +```sh +npm install +``` + +### Compile and Hot-Reload for Development + +```sh +npm run dev +``` + +### Compile and Minify for Production + +```sh +npm run build +``` + +### Run End-to-End Tests with [Playwright](https://playwright.dev) + +```sh +# Install browsers for the first run +npx playwright install + +# When testing on CI, must build the project first +npm run build + +# Runs the end-to-end tests +npm run test:e2e +# Runs the tests only on Chromium +npm run test:e2e -- --project=chromium +# Runs the tests of a specific file +npm run test:e2e -- tests/example.spec.ts +# Runs the tests in debug mode +npm run test:e2e -- --debug +``` diff --git a/e2e/vue.spec.js b/e2e/vue.spec.js new file mode 100644 index 0000000..fc116a9 --- /dev/null +++ b/e2e/vue.spec.js @@ -0,0 +1,8 @@ +import { test, expect } from '@playwright/test'; + +// See here how to get started: +// https://playwright.dev/docs/intro +test('visits the app root url', async ({ page }) => { + await page.goto('/'); + await expect(page.locator('h1')).toHaveText('You did it!'); +}) diff --git a/index.html b/index.html new file mode 100644 index 0000000..92673d0 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite App + + +
+ + + diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..5a1f2d2 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + } + }, + "exclude": ["node_modules", "dist"] +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json new file mode 100644 index 0000000..154cdca --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "test", + "version": "0.0.0", + "private": true, + "type": "module", + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "test:e2e": "playwright test" + }, + "dependencies": { + "axios": "^1.13.2", + "tailwindcss": "^4.1.18", + "vue": "^3.5.25" + }, + "devDependencies": { + "@playwright/test": "^1.57.0", + "@tailwindcss/vite": "^4.1.18", + "@vitejs/plugin-vue": "^6.0.2", + "vite": "^7.3.0", + "vite-plugin-vue-devtools": "^8.0.5" + } +} diff --git a/playwright.config.js b/playwright.config.js new file mode 100644 index 0000000..5ece956 --- /dev/null +++ b/playwright.config.js @@ -0,0 +1,110 @@ +import process from 'node:process' +import { defineConfig, devices } from '@playwright/test' + +/** + * Read environment variables from file. + * https://github.com/motdotla/dotenv + */ +// require('dotenv').config(); + +/** + * See https://playwright.dev/docs/test-configuration. + */ +export default defineConfig({ + testDir: './e2e', + /* Maximum time one test can run for. */ + timeout: 30 * 1000, + expect: { + /** + * Maximum time expect() should wait for the condition to be met. + * For example in `await expect(locator).toHaveText();` + */ + timeout: 5000, + }, + /* Fail the build on CI if you accidentally left test.only in the source code. */ + forbidOnly: !!process.env.CI, + /* Retry on CI only */ + retries: process.env.CI ? 2 : 0, + /* Opt out of parallel tests on CI. */ + workers: process.env.CI ? 1 : undefined, + /* Reporter to use. See https://playwright.dev/docs/test-reporters */ + reporter: 'html', + /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ + use: { + /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */ + actionTimeout: 0, + /* Base URL to use in actions like `await page.goto('/')`. */ + baseURL: process.env.CI ? 'http://localhost:4173' : 'http://localhost:5173', + + /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ + trace: 'on-first-retry', + + /* Only on CI systems run the tests headless */ + headless: !!process.env.CI, + }, + + /* Configure projects for major browsers */ + projects: [ + { + name: 'chromium', + use: { + ...devices['Desktop Chrome'], + }, + }, + { + name: 'firefox', + use: { + ...devices['Desktop Firefox'], + }, + }, + { + name: 'webkit', + use: { + ...devices['Desktop Safari'], + }, + }, + + /* Test against mobile viewports. */ + // { + // name: 'Mobile Chrome', + // use: { + // ...devices['Pixel 5'], + // }, + // }, + // { + // name: 'Mobile Safari', + // use: { + // ...devices['iPhone 12'], + // }, + // }, + + /* Test against branded browsers. */ + // { + // name: 'Microsoft Edge', + // use: { + // channel: 'msedge', + // }, + // }, + // { + // name: 'Google Chrome', + // use: { + // channel: 'chrome', + // }, + // }, + ], + + /* Folder for test artifacts such as screenshots, videos, traces, etc. */ + // outputDir: 'test-results/', + + /* Run your local dev server before starting the tests */ + webServer: { + /** + * Use the dev server by default for faster feedback loop. + * Use the preview server on CI for more realistic testing. + * Playwright will re-use the local server if there is already a dev-server running. + */ + command: process.env.CI ? 'npm run preview' : 'npm run dev', + port: process.env.CI ? 4173 : 5173, + reuseExistingServer: !process.env.CI, + }, +}) diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..df36fcf Binary files /dev/null and b/public/favicon.ico differ diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..b1f3af1 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,59 @@ + + + + + + diff --git a/src/assets/href.webp b/src/assets/href.webp new file mode 100644 index 0000000..31a43a7 Binary files /dev/null and b/src/assets/href.webp differ diff --git a/src/assets/logo.svg b/src/assets/logo.svg new file mode 100644 index 0000000..7565660 --- /dev/null +++ b/src/assets/logo.svg @@ -0,0 +1 @@ + diff --git a/src/assets/main.css b/src/assets/main.css new file mode 100644 index 0000000..b2b3ede --- /dev/null +++ b/src/assets/main.css @@ -0,0 +1,16 @@ +@import "tailwindcss"; + +/* Для темной темы */ +@media (prefers-color-scheme: dark) { + body { + background: #111; + /* другие стили для темной темы */ + } +} + +/* Для светлой темы (по умолчанию или явно) */ +@media (prefers-color-scheme: light) { + body { + background: #ccc; /* или любой другой цвет */ + } +} \ No newline at end of file diff --git a/src/components/Authe.vue b/src/components/Authe.vue new file mode 100644 index 0000000..dee8a8e --- /dev/null +++ b/src/components/Authe.vue @@ -0,0 +1,92 @@ + + + \ No newline at end of file diff --git a/src/components/Mob_naw.vue b/src/components/Mob_naw.vue new file mode 100644 index 0000000..02fe451 --- /dev/null +++ b/src/components/Mob_naw.vue @@ -0,0 +1,48 @@ + + + \ No newline at end of file diff --git a/src/components/My_naw.vue b/src/components/My_naw.vue new file mode 100644 index 0000000..63a26a2 --- /dev/null +++ b/src/components/My_naw.vue @@ -0,0 +1,53 @@ + + + \ No newline at end of file diff --git a/src/components/Section.vue b/src/components/Section.vue new file mode 100644 index 0000000..2321d20 --- /dev/null +++ b/src/components/Section.vue @@ -0,0 +1,35 @@ + + + + diff --git a/src/components/Setings.vue b/src/components/Setings.vue new file mode 100644 index 0000000..11377d0 --- /dev/null +++ b/src/components/Setings.vue @@ -0,0 +1,240 @@ + + + diff --git a/src/components/Stat.vue b/src/components/Stat.vue new file mode 100644 index 0000000..21514a2 --- /dev/null +++ b/src/components/Stat.vue @@ -0,0 +1,106 @@ + + + \ No newline at end of file diff --git a/src/components/Time.vue b/src/components/Time.vue new file mode 100644 index 0000000..dbdf88d --- /dev/null +++ b/src/components/Time.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..0ac3a5f --- /dev/null +++ b/src/main.js @@ -0,0 +1,6 @@ +import './assets/main.css' + +import { createApp } from 'vue' +import App from './App.vue' + +createApp(App).mount('#app') diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..dc70e58 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,15 @@ +import { fileURLToPath, URL } from "node:url"; +import tailwindcss from "@tailwindcss/vite"; +import { defineConfig } from "vite"; +import vue from "@vitejs/plugin-vue"; +import vueDevTools from "vite-plugin-vue-devtools"; + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [vue(), vueDevTools(), tailwindcss()], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), + }, + }, +});