27 changed files with 867 additions and 886 deletions
@ -1,3 +1,3 @@ |
|||
{ |
|||
"recommendations": ["dbaeumer.vscode-eslint"] |
|||
"recommendations": ["dbaeumer.vscode-eslint"] |
|||
} |
|||
|
@ -1,39 +1,39 @@ |
|||
{ |
|||
"version": "0.2.0", |
|||
"configurations": [ |
|||
{ |
|||
"name": "Debug Main Process", |
|||
"type": "node", |
|||
"request": "launch", |
|||
"cwd": "${workspaceRoot}", |
|||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite", |
|||
"windows": { |
|||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd" |
|||
}, |
|||
"runtimeArgs": ["--sourcemap"], |
|||
"env": { |
|||
"REMOTE_DEBUGGING_PORT": "9222" |
|||
} |
|||
}, |
|||
{ |
|||
"name": "Debug Renderer Process", |
|||
"port": 9222, |
|||
"request": "attach", |
|||
"type": "chrome", |
|||
"webRoot": "${workspaceFolder}/src/renderer", |
|||
"timeout": 60000, |
|||
"presentation": { |
|||
"hidden": true |
|||
} |
|||
} |
|||
], |
|||
"compounds": [ |
|||
{ |
|||
"name": "Debug All", |
|||
"configurations": ["Debug Main Process", "Debug Renderer Process"], |
|||
"presentation": { |
|||
"order": 1 |
|||
} |
|||
} |
|||
] |
|||
"version": "0.2.0", |
|||
"configurations": [ |
|||
{ |
|||
"name": "Debug Main Process", |
|||
"type": "node", |
|||
"request": "launch", |
|||
"cwd": "${workspaceRoot}", |
|||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite", |
|||
"windows": { |
|||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd" |
|||
}, |
|||
"runtimeArgs": ["--sourcemap"], |
|||
"env": { |
|||
"REMOTE_DEBUGGING_PORT": "9222" |
|||
} |
|||
}, |
|||
{ |
|||
"name": "Debug Renderer Process", |
|||
"port": 9222, |
|||
"request": "attach", |
|||
"type": "chrome", |
|||
"webRoot": "${workspaceFolder}/src/renderer", |
|||
"timeout": 60000, |
|||
"presentation": { |
|||
"hidden": true |
|||
} |
|||
} |
|||
], |
|||
"compounds": [ |
|||
{ |
|||
"name": "Debug All", |
|||
"configurations": ["Debug Main Process", "Debug Renderer Process"], |
|||
"presentation": { |
|||
"order": 1 |
|||
} |
|||
} |
|||
] |
|||
} |
|||
|
@ -1,11 +1,11 @@ |
|||
{ |
|||
"[typescript]": { |
|||
"editor.defaultFormatter": "vscode.typescript-language-features" |
|||
}, |
|||
"[javascript]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[json]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
} |
|||
"[typescript]": { |
|||
"editor.defaultFormatter": "vscode.typescript-language-features" |
|||
}, |
|||
"[javascript]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
}, |
|||
"[json]": { |
|||
"editor.defaultFormatter": "esbenp.prettier-vscode" |
|||
} |
|||
} |
|||
|
@ -1,45 +1,45 @@ |
|||
appId: com.electron.app |
|||
productName: my-app |
|||
directories: |
|||
buildResources: build |
|||
buildResources: build |
|||
files: |
|||
- '!**/.vscode/*' |
|||
- '!src/*' |
|||
- '!electron.vite.config.{js,ts,mjs,cjs}' |
|||
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}' |
|||
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}' |
|||
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}' |
|||
- "!**/.vscode/*" |
|||
- "!src/*" |
|||
- "!electron.vite.config.{js,ts,mjs,cjs}" |
|||
- "!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}" |
|||
- "!{.env,.env.*,.npmrc,pnpm-lock.yaml}" |
|||
- "!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}" |
|||
asarUnpack: |
|||
- resources/** |
|||
- resources/** |
|||
win: |
|||
executableName: my-app |
|||
executableName: my-app |
|||
nsis: |
|||
artifactName: ${name}-${version}-setup.${ext} |
|||
shortcutName: ${productName} |
|||
uninstallDisplayName: ${productName} |
|||
createDesktopShortcut: always |
|||
artifactName: ${name}-${version}-setup.${ext} |
|||
shortcutName: ${productName} |
|||
uninstallDisplayName: ${productName} |
|||
createDesktopShortcut: always |
|||
mac: |
|||
entitlementsInherit: build/entitlements.mac.plist |
|||
extendInfo: |
|||
- NSCameraUsageDescription: Application requests access to the device's camera. |
|||
- NSMicrophoneUsageDescription: Application requests access to the device's microphone. |
|||
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder. |
|||
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder. |
|||
notarize: false |
|||
entitlementsInherit: build/entitlements.mac.plist |
|||
extendInfo: |
|||
- NSCameraUsageDescription: Application requests access to the device's camera. |
|||
- NSMicrophoneUsageDescription: Application requests access to the device's microphone. |
|||
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder. |
|||
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder. |
|||
notarize: false |
|||
dmg: |
|||
artifactName: ${name}-${version}.${ext} |
|||
artifactName: ${name}-${version}.${ext} |
|||
linux: |
|||
target: |
|||
- AppImage |
|||
- snap |
|||
- deb |
|||
maintainer: electronjs.org |
|||
category: Utility |
|||
target: |
|||
- AppImage |
|||
- snap |
|||
- deb |
|||
maintainer: electronjs.org |
|||
category: Utility |
|||
appImage: |
|||
artifactName: ${name}-${version}.${ext} |
|||
artifactName: ${name}-${version}.${ext} |
|||
npmRebuild: false |
|||
publish: |
|||
provider: generic |
|||
url: https://example.com/auto-updates |
|||
provider: generic |
|||
url: https://example.com/auto-updates |
|||
electronDownload: |
|||
mirror: https://npmmirror.com/mirrors/electron/ |
|||
mirror: https://npmmirror.com/mirrors/electron/ |
|||
|
@ -1,28 +1,28 @@ |
|||
import { resolve } from 'path' |
|||
import { defineConfig, externalizeDepsPlugin } from 'electron-vite' |
|||
import vue from '@vitejs/plugin-vue' |
|||
import UnoCSS from 'unocss/vite' |
|||
import { resolve } from "path" |
|||
import { defineConfig, externalizeDepsPlugin } from "electron-vite" |
|||
import vue from "@vitejs/plugin-vue" |
|||
import UnoCSS from "unocss/vite" |
|||
|
|||
export default defineConfig({ |
|||
main: { |
|||
resolve: { |
|||
alias: { |
|||
config: resolve('config'), |
|||
vc: resolve('src/main'), |
|||
res: resolve('resources') |
|||
} |
|||
main: { |
|||
resolve: { |
|||
alias: { |
|||
config: resolve("config"), |
|||
vc: resolve("src/main"), |
|||
res: resolve("resources"), |
|||
}, |
|||
}, |
|||
plugins: [externalizeDepsPlugin()], |
|||
}, |
|||
plugins: [externalizeDepsPlugin()] |
|||
}, |
|||
preload: { |
|||
plugins: [externalizeDepsPlugin()] |
|||
}, |
|||
renderer: { |
|||
resolve: { |
|||
alias: { |
|||
'@renderer': resolve('src/renderer/src') |
|||
} |
|||
preload: { |
|||
plugins: [externalizeDepsPlugin()], |
|||
}, |
|||
renderer: { |
|||
resolve: { |
|||
alias: { |
|||
"@renderer": resolve("src/renderer/src"), |
|||
}, |
|||
}, |
|||
plugins: [UnoCSS(), vue()], |
|||
}, |
|||
plugins: [UnoCSS(), vue()] |
|||
} |
|||
}) |
|||
|
@ -1,56 +1,56 @@ |
|||
{ |
|||
"name": "my-app", |
|||
"type": "module", |
|||
"version": "1.0.0", |
|||
"description": "An Electron application with Vue and TypeScript", |
|||
"main": "./out/main/index.js", |
|||
"author": "example.com", |
|||
"homepage": "https://electron-vite.org", |
|||
"scripts": { |
|||
"format": "prettier --write .", |
|||
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix", |
|||
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", |
|||
"typecheck:web": "vue-tsc --noEmit -p tsconfig.web.json --composite false", |
|||
"typecheck": "npm run typecheck:node && npm run typecheck:web", |
|||
"start": "electron-vite preview", |
|||
"dev": "electron-vite dev", |
|||
"dev:watch": "electron-vite dev --watch", |
|||
"build": "npm run typecheck && electron-vite build", |
|||
"postinstall": "electron-builder install-app-deps", |
|||
"build:unpack": "npm run build && electron-builder --dir", |
|||
"build:win": "npm run build && electron-builder --win", |
|||
"build:mac": "npm run build && electron-builder --mac", |
|||
"build:linux": "npm run build && electron-builder --linux" |
|||
}, |
|||
"dependencies": { |
|||
"@electron-toolkit/preload": "^3.0.0", |
|||
"@electron-toolkit/utils": "^3.0.0", |
|||
"@unocss/reset": "^0.64.1", |
|||
"electron-updater": "^6.1.7", |
|||
"inversify": "^6.1.4", |
|||
"lowdb": "^7.0.1", |
|||
"reflect-metadata": "^0.2.2" |
|||
}, |
|||
"devDependencies": { |
|||
"@electron-toolkit/eslint-config": "^1.0.2", |
|||
"@electron-toolkit/eslint-config-ts": "^2.0.0", |
|||
"@electron-toolkit/tsconfig": "^1.0.1", |
|||
"@rushstack/eslint-patch": "^1.10.3", |
|||
"@types/node": "^20.14.8", |
|||
"@unocss/preset-rem-to-px": "^0.64.1", |
|||
"@vitejs/plugin-vue": "^5.0.5", |
|||
"@vue/eslint-config-prettier": "^9.0.0", |
|||
"@vue/eslint-config-typescript": "^13.0.0", |
|||
"electron": "^31.0.2", |
|||
"electron-builder": "^24.13.3", |
|||
"electron-vite": "^2.3.0", |
|||
"eslint": "^8.57.0", |
|||
"eslint-plugin-vue": "^9.26.0", |
|||
"prettier": "^3.3.2", |
|||
"typescript": "^5.5.2", |
|||
"unocss": "^0.64.1", |
|||
"vite": "^5.3.1", |
|||
"vue": "^3.4.30", |
|||
"vue-tsc": "^2.0.22" |
|||
} |
|||
"name": "my-app", |
|||
"type": "module", |
|||
"version": "1.0.0", |
|||
"description": "An Electron application with Vue and TypeScript", |
|||
"main": "./out/main/index.js", |
|||
"author": "example.com", |
|||
"homepage": "https://electron-vite.org", |
|||
"scripts": { |
|||
"format": "prettier --write .", |
|||
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix", |
|||
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", |
|||
"typecheck:web": "vue-tsc --noEmit -p tsconfig.web.json --composite false", |
|||
"typecheck": "npm run typecheck:node && npm run typecheck:web", |
|||
"start": "electron-vite preview", |
|||
"dev": "electron-vite dev", |
|||
"dev:watch": "electron-vite dev --watch", |
|||
"build": "npm run typecheck && electron-vite build", |
|||
"postinstall": "electron-builder install-app-deps", |
|||
"build:unpack": "npm run build && electron-builder --dir", |
|||
"build:win": "npm run build && electron-builder --win", |
|||
"build:mac": "npm run build && electron-builder --mac", |
|||
"build:linux": "npm run build && electron-builder --linux" |
|||
}, |
|||
"dependencies": { |
|||
"@electron-toolkit/preload": "^3.0.0", |
|||
"@electron-toolkit/utils": "^3.0.0", |
|||
"@unocss/reset": "^0.64.1", |
|||
"electron-updater": "^6.1.7", |
|||
"inversify": "^6.1.4", |
|||
"lowdb": "^7.0.1", |
|||
"reflect-metadata": "^0.2.2" |
|||
}, |
|||
"devDependencies": { |
|||
"@electron-toolkit/eslint-config": "^1.0.2", |
|||
"@electron-toolkit/eslint-config-ts": "^2.0.0", |
|||
"@electron-toolkit/tsconfig": "^1.0.1", |
|||
"@rushstack/eslint-patch": "^1.10.3", |
|||
"@types/node": "^20.14.8", |
|||
"@unocss/preset-rem-to-px": "^0.64.1", |
|||
"@vitejs/plugin-vue": "^5.0.5", |
|||
"@vue/eslint-config-prettier": "^9.0.0", |
|||
"@vue/eslint-config-typescript": "^13.0.0", |
|||
"electron": "^31.0.2", |
|||
"electron-builder": "^24.13.3", |
|||
"electron-vite": "^2.3.0", |
|||
"eslint": "^8.57.0", |
|||
"eslint-plugin-vue": "^9.26.0", |
|||
"prettier": "^3.3.2", |
|||
"typescript": "^5.5.2", |
|||
"unocss": "^0.64.1", |
|||
"vite": "^5.3.1", |
|||
"vue": "^3.4.30", |
|||
"vue-tsc": "^2.0.22" |
|||
} |
|||
} |
|||
|
@ -1,3 +1,3 @@ |
|||
abstract class Base{ |
|||
constructor(){} |
|||
abstract class Base { |
|||
constructor() {} |
|||
} |
@ -1,8 +1,8 @@ |
|||
import { ElectronAPI } from '@electron-toolkit/preload' |
|||
import { ElectronAPI } from "@electron-toolkit/preload" |
|||
|
|||
declare global { |
|||
interface Window { |
|||
electron: ElectronAPI |
|||
api: unknown |
|||
} |
|||
interface Window { |
|||
electron: ElectronAPI |
|||
api: unknown |
|||
} |
|||
} |
|||
|
@ -1,17 +1,17 @@ |
|||
<!doctype html> |
|||
<html> |
|||
<head> |
|||
<meta charset="UTF-8" /> |
|||
<title>Electron</title> |
|||
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> |
|||
<meta |
|||
http-equiv="Content-Security-Policy" |
|||
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:" |
|||
/> |
|||
</head> |
|||
<head> |
|||
<meta charset="UTF-8" /> |
|||
<title>Electron</title> |
|||
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> |
|||
<meta |
|||
http-equiv="Content-Security-Policy" |
|||
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:" |
|||
/> |
|||
</head> |
|||
|
|||
<body> |
|||
<div id="app"></div> |
|||
<script type="module" src="/src/main.ts"></script> |
|||
</body> |
|||
<body> |
|||
<div id="app"></div> |
|||
<script type="module" src="/src/main.ts"></script> |
|||
</body> |
|||
</html> |
|||
|
@ -1,26 +1,30 @@ |
|||
<script setup lang="ts"> |
|||
import Versions from './components/Versions.vue' |
|||
import Versions from "./components/Versions.vue" |
|||
|
|||
const ipcHandle = () => window.electron.ipcRenderer.send('ping') |
|||
const ipcHandle = () => window.electron.ipcRenderer.send("ping") |
|||
</script> |
|||
|
|||
<template> |
|||
<img alt="logo" class="logo" src="./assets/electron.svg" /> |
|||
<div class="creator">Powered by electron-vite</div> |
|||
<div class="text"> |
|||
Build an Electron app with |
|||
<span class="vue">Vue</span> |
|||
and |
|||
<span class="ts">TypeScript</span> |
|||
</div> |
|||
<p class="tip">Please try pressing <code>F12</code> to open the devTool</p> |
|||
<div class="actions"> |
|||
<div class="action"> |
|||
<a href="https://electron-vite.org/" target="_blank" rel="noreferrer">Documentation</a> |
|||
<img alt="logo" class="logo" src="./assets/electron.svg" /> |
|||
<div class="creator">Powered by electron-vite</div> |
|||
<div class="text"> |
|||
Build an Electron app with |
|||
<span class="vue">Vue</span> |
|||
and |
|||
<span class="ts">TypeScript</span> |
|||
</div> |
|||
<div class="action"> |
|||
<a target="_blank" rel="noreferrer" @click="ipcHandle">Send IPC</a> |
|||
<p class="tip"> |
|||
Please try pressing |
|||
<code>F12</code> |
|||
to open the devTool |
|||
</p> |
|||
<div class="actions"> |
|||
<div class="action"> |
|||
<a href="https://electron-vite.org/" target="_blank" rel="noreferrer">Documentation</a> |
|||
</div> |
|||
<div class="action"> |
|||
<a target="_blank" rel="noreferrer" @click="ipcHandle">Send IPC</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<Versions /> |
|||
<Versions /> |
|||
</template> |
|||
|
@ -1,67 +1,67 @@ |
|||
:root { |
|||
--ev-c-white: #ffffff; |
|||
--ev-c-white-soft: #f8f8f8; |
|||
--ev-c-white-mute: #f2f2f2; |
|||
--ev-c-white: #ffffff; |
|||
--ev-c-white-soft: #f8f8f8; |
|||
--ev-c-white-mute: #f2f2f2; |
|||
|
|||
--ev-c-black: #1b1b1f; |
|||
--ev-c-black-soft: #222222; |
|||
--ev-c-black-mute: #282828; |
|||
--ev-c-black: #1b1b1f; |
|||
--ev-c-black-soft: #222222; |
|||
--ev-c-black-mute: #282828; |
|||
|
|||
--ev-c-gray-1: #515c67; |
|||
--ev-c-gray-2: #414853; |
|||
--ev-c-gray-3: #32363f; |
|||
--ev-c-gray-1: #515c67; |
|||
--ev-c-gray-2: #414853; |
|||
--ev-c-gray-3: #32363f; |
|||
|
|||
--ev-c-text-1: rgba(255, 255, 245, 0.86); |
|||
--ev-c-text-2: rgba(235, 235, 245, 0.6); |
|||
--ev-c-text-3: rgba(235, 235, 245, 0.38); |
|||
--ev-c-text-1: rgba(255, 255, 245, 0.86); |
|||
--ev-c-text-2: rgba(235, 235, 245, 0.6); |
|||
--ev-c-text-3: rgba(235, 235, 245, 0.38); |
|||
|
|||
--ev-button-alt-border: transparent; |
|||
--ev-button-alt-text: var(--ev-c-text-1); |
|||
--ev-button-alt-bg: var(--ev-c-gray-3); |
|||
--ev-button-alt-hover-border: transparent; |
|||
--ev-button-alt-hover-text: var(--ev-c-text-1); |
|||
--ev-button-alt-hover-bg: var(--ev-c-gray-2); |
|||
--ev-button-alt-border: transparent; |
|||
--ev-button-alt-text: var(--ev-c-text-1); |
|||
--ev-button-alt-bg: var(--ev-c-gray-3); |
|||
--ev-button-alt-hover-border: transparent; |
|||
--ev-button-alt-hover-text: var(--ev-c-text-1); |
|||
--ev-button-alt-hover-bg: var(--ev-c-gray-2); |
|||
} |
|||
|
|||
:root { |
|||
--color-background: var(--ev-c-black); |
|||
--color-background-soft: var(--ev-c-black-soft); |
|||
--color-background-mute: var(--ev-c-black-mute); |
|||
--color-background: var(--ev-c-black); |
|||
--color-background-soft: var(--ev-c-black-soft); |
|||
--color-background-mute: var(--ev-c-black-mute); |
|||
|
|||
--color-text: var(--ev-c-text-1); |
|||
--color-text: var(--ev-c-text-1); |
|||
} |
|||
|
|||
*, |
|||
*::before, |
|||
*::after { |
|||
box-sizing: border-box; |
|||
margin: 0; |
|||
font-weight: normal; |
|||
box-sizing: border-box; |
|||
margin: 0; |
|||
font-weight: normal; |
|||
} |
|||
|
|||
ul { |
|||
list-style: none; |
|||
list-style: none; |
|||
} |
|||
|
|||
body { |
|||
min-height: 100vh; |
|||
color: var(--color-text); |
|||
background: var(--color-background); |
|||
line-height: 1.6; |
|||
font-family: |
|||
Inter, |
|||
-apple-system, |
|||
BlinkMacSystemFont, |
|||
'Segoe UI', |
|||
Roboto, |
|||
Oxygen, |
|||
Ubuntu, |
|||
Cantarell, |
|||
'Fira Sans', |
|||
'Droid Sans', |
|||
'Helvetica Neue', |
|||
sans-serif; |
|||
text-rendering: optimizeLegibility; |
|||
-webkit-font-smoothing: antialiased; |
|||
-moz-osx-font-smoothing: grayscale; |
|||
min-height: 100vh; |
|||
color: var(--color-text); |
|||
background: var(--color-background); |
|||
line-height: 1.6; |
|||
font-family: |
|||
Inter, |
|||
-apple-system, |
|||
BlinkMacSystemFont, |
|||
"Segoe UI", |
|||
Roboto, |
|||
Oxygen, |
|||
Ubuntu, |
|||
Cantarell, |
|||
"Fira Sans", |
|||
"Droid Sans", |
|||
"Helvetica Neue", |
|||
sans-serif; |
|||
text-rendering: optimizeLegibility; |
|||
-webkit-font-smoothing: antialiased; |
|||
-moz-osx-font-smoothing: grayscale; |
|||
} |
|||
|
@ -1,171 +1,171 @@ |
|||
@import './base.css'; |
|||
@import "./base.css"; |
|||
|
|||
body { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
overflow: hidden; |
|||
background-image: url('./wavy-lines.svg'); |
|||
background-size: cover; |
|||
user-select: none; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
overflow: hidden; |
|||
background-image: url("./wavy-lines.svg"); |
|||
background-size: cover; |
|||
user-select: none; |
|||
} |
|||
|
|||
code { |
|||
font-weight: 600; |
|||
padding: 3px 5px; |
|||
border-radius: 2px; |
|||
background-color: var(--color-background-mute); |
|||
font-family: |
|||
ui-monospace, |
|||
SFMono-Regular, |
|||
SF Mono, |
|||
Menlo, |
|||
Consolas, |
|||
Liberation Mono, |
|||
monospace; |
|||
font-size: 85%; |
|||
font-weight: 600; |
|||
padding: 3px 5px; |
|||
border-radius: 2px; |
|||
background-color: var(--color-background-mute); |
|||
font-family: |
|||
ui-monospace, |
|||
SFMono-Regular, |
|||
SF Mono, |
|||
Menlo, |
|||
Consolas, |
|||
Liberation Mono, |
|||
monospace; |
|||
font-size: 85%; |
|||
} |
|||
|
|||
#app { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
flex-direction: column; |
|||
margin-bottom: 80px; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
flex-direction: column; |
|||
margin-bottom: 80px; |
|||
} |
|||
|
|||
.logo { |
|||
margin-bottom: 20px; |
|||
-webkit-user-drag: none; |
|||
height: 128px; |
|||
width: 128px; |
|||
will-change: filter; |
|||
transition: filter 300ms; |
|||
margin-bottom: 20px; |
|||
-webkit-user-drag: none; |
|||
height: 128px; |
|||
width: 128px; |
|||
will-change: filter; |
|||
transition: filter 300ms; |
|||
} |
|||
|
|||
.logo:hover { |
|||
filter: drop-shadow(0 0 1.2em #6988e6aa); |
|||
filter: drop-shadow(0 0 1.2em #6988e6aa); |
|||
} |
|||
|
|||
.creator { |
|||
font-size: 14px; |
|||
line-height: 16px; |
|||
color: var(--ev-c-text-2); |
|||
font-weight: 600; |
|||
margin-bottom: 10px; |
|||
font-size: 14px; |
|||
line-height: 16px; |
|||
color: var(--ev-c-text-2); |
|||
font-weight: 600; |
|||
margin-bottom: 10px; |
|||
} |
|||
|
|||
.text { |
|||
font-size: 28px; |
|||
color: var(--ev-c-text-1); |
|||
font-weight: 700; |
|||
line-height: 32px; |
|||
text-align: center; |
|||
margin: 0 10px; |
|||
padding: 16px 0; |
|||
font-size: 28px; |
|||
color: var(--ev-c-text-1); |
|||
font-weight: 700; |
|||
line-height: 32px; |
|||
text-align: center; |
|||
margin: 0 10px; |
|||
padding: 16px 0; |
|||
} |
|||
|
|||
.tip { |
|||
font-size: 16px; |
|||
line-height: 24px; |
|||
color: var(--ev-c-text-2); |
|||
font-weight: 600; |
|||
font-size: 16px; |
|||
line-height: 24px; |
|||
color: var(--ev-c-text-2); |
|||
font-weight: 600; |
|||
} |
|||
|
|||
.vue { |
|||
background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff); |
|||
background-clip: text; |
|||
-webkit-background-clip: text; |
|||
-webkit-text-fill-color: transparent; |
|||
font-weight: 700; |
|||
background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff); |
|||
background-clip: text; |
|||
-webkit-background-clip: text; |
|||
-webkit-text-fill-color: transparent; |
|||
font-weight: 700; |
|||
} |
|||
|
|||
.ts { |
|||
background: -webkit-linear-gradient(315deg, #3178c6 45%, #f0dc4e); |
|||
background-clip: text; |
|||
-webkit-background-clip: text; |
|||
-webkit-text-fill-color: transparent; |
|||
font-weight: 700; |
|||
background: -webkit-linear-gradient(315deg, #3178c6 45%, #f0dc4e); |
|||
background-clip: text; |
|||
-webkit-background-clip: text; |
|||
-webkit-text-fill-color: transparent; |
|||
font-weight: 700; |
|||
} |
|||
|
|||
.actions { |
|||
display: flex; |
|||
padding-top: 32px; |
|||
margin: -6px; |
|||
flex-wrap: wrap; |
|||
justify-content: flex-start; |
|||
display: flex; |
|||
padding-top: 32px; |
|||
margin: -6px; |
|||
flex-wrap: wrap; |
|||
justify-content: flex-start; |
|||
} |
|||
|
|||
.action { |
|||
flex-shrink: 0; |
|||
padding: 6px; |
|||
flex-shrink: 0; |
|||
padding: 6px; |
|||
} |
|||
|
|||
.action a { |
|||
cursor: pointer; |
|||
text-decoration: none; |
|||
display: inline-block; |
|||
border: 1px solid transparent; |
|||
text-align: center; |
|||
font-weight: 600; |
|||
white-space: nowrap; |
|||
border-radius: 20px; |
|||
padding: 0 20px; |
|||
line-height: 38px; |
|||
font-size: 14px; |
|||
border-color: var(--ev-button-alt-border); |
|||
color: var(--ev-button-alt-text); |
|||
background-color: var(--ev-button-alt-bg); |
|||
cursor: pointer; |
|||
text-decoration: none; |
|||
display: inline-block; |
|||
border: 1px solid transparent; |
|||
text-align: center; |
|||
font-weight: 600; |
|||
white-space: nowrap; |
|||
border-radius: 20px; |
|||
padding: 0 20px; |
|||
line-height: 38px; |
|||
font-size: 14px; |
|||
border-color: var(--ev-button-alt-border); |
|||
color: var(--ev-button-alt-text); |
|||
background-color: var(--ev-button-alt-bg); |
|||
} |
|||
|
|||
.action a:hover { |
|||
border-color: var(--ev-button-alt-hover-border); |
|||
color: var(--ev-button-alt-hover-text); |
|||
background-color: var(--ev-button-alt-hover-bg); |
|||
border-color: var(--ev-button-alt-hover-border); |
|||
color: var(--ev-button-alt-hover-text); |
|||
background-color: var(--ev-button-alt-hover-bg); |
|||
} |
|||
|
|||
.versions { |
|||
position: absolute; |
|||
bottom: 30px; |
|||
margin: 0 auto; |
|||
padding: 15px 0; |
|||
font-family: 'Menlo', 'Lucida Console', monospace; |
|||
display: inline-flex; |
|||
overflow: hidden; |
|||
align-items: center; |
|||
border-radius: 22px; |
|||
background-color: #202127; |
|||
backdrop-filter: blur(24px); |
|||
position: absolute; |
|||
bottom: 30px; |
|||
margin: 0 auto; |
|||
padding: 15px 0; |
|||
font-family: "Menlo", "Lucida Console", monospace; |
|||
display: inline-flex; |
|||
overflow: hidden; |
|||
align-items: center; |
|||
border-radius: 22px; |
|||
background-color: #202127; |
|||
backdrop-filter: blur(24px); |
|||
} |
|||
|
|||
.versions li { |
|||
display: block; |
|||
float: left; |
|||
border-right: 1px solid var(--ev-c-gray-1); |
|||
padding: 0 20px; |
|||
font-size: 14px; |
|||
line-height: 14px; |
|||
opacity: 0.8; |
|||
&:last-child { |
|||
border: none; |
|||
} |
|||
display: block; |
|||
float: left; |
|||
border-right: 1px solid var(--ev-c-gray-1); |
|||
padding: 0 20px; |
|||
font-size: 14px; |
|||
line-height: 14px; |
|||
opacity: 0.8; |
|||
&:last-child { |
|||
border: none; |
|||
} |
|||
} |
|||
|
|||
@media (max-width: 720px) { |
|||
.text { |
|||
font-size: 20px; |
|||
} |
|||
.text { |
|||
font-size: 20px; |
|||
} |
|||
} |
|||
|
|||
@media (max-width: 620px) { |
|||
.versions { |
|||
display: none; |
|||
} |
|||
.versions { |
|||
display: none; |
|||
} |
|||
} |
|||
|
|||
@media (max-width: 350px) { |
|||
.tip, |
|||
.actions { |
|||
display: none; |
|||
} |
|||
.tip, |
|||
.actions { |
|||
display: none; |
|||
} |
|||
} |
|||
|
@ -1,13 +1,13 @@ |
|||
<script setup lang="ts"> |
|||
import { reactive } from 'vue' |
|||
import { reactive } from "vue" |
|||
|
|||
const versions = reactive({ ...window.electron.process.versions }) |
|||
</script> |
|||
|
|||
<template> |
|||
<ul class="versions"> |
|||
<li class="electron-version">Electron v{{ versions.electron }}</li> |
|||
<li class="chrome-version">Chromium v{{ versions.chrome }}</li> |
|||
<li class="node-version">Node v{{ versions.node }}</li> |
|||
</ul> |
|||
<ul class="versions"> |
|||
<li class="electron-version">Electron v{{ versions.electron }}</li> |
|||
<li class="chrome-version">Chromium v{{ versions.chrome }}</li> |
|||
<li class="node-version">Node v{{ versions.node }}</li> |
|||
</ul> |
|||
</template> |
|||
|
@ -1,8 +1,8 @@ |
|||
/// <reference types="vite/client" />
|
|||
|
|||
declare module '*.vue' { |
|||
import type { DefineComponent } from 'vue' |
|||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|||
const component: DefineComponent<{}, {}, any> |
|||
export default component |
|||
declare module "*.vue" { |
|||
import type { DefineComponent } from "vue" |
|||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|||
const component: DefineComponent<{}, {}, any> |
|||
export default component |
|||
} |
|||
|
@ -1,8 +1,8 @@ |
|||
import 'virtual:uno.css' |
|||
import '@unocss/reset/normalize.css' |
|||
import './assets/main.css' |
|||
import "virtual:uno.css" |
|||
import "@unocss/reset/normalize.css" |
|||
import "./assets/main.css" |
|||
|
|||
import { createApp } from 'vue' |
|||
import App from './App.vue' |
|||
import { createApp } from "vue" |
|||
import App from "./App.vue" |
|||
|
|||
createApp(App).mount('#app') |
|||
createApp(App).mount("#app") |
|||
|
@ -1,5 +1,5 @@ |
|||
import type { AttributifyAttributes } from '@unocss/preset-attributify' |
|||
import type { AttributifyAttributes } from "@unocss/preset-attributify" |
|||
|
|||
declare module '@vue/runtime-dom' { |
|||
interface HTMLAttributes extends AttributifyAttributes { } |
|||
declare module "@vue/runtime-dom" { |
|||
interface HTMLAttributes extends AttributifyAttributes {} |
|||
} |
@ -1,10 +1,6 @@ |
|||
import { defineConfig, presetAttributify, presetUno } from 'unocss' |
|||
import presetRemToPx from '@unocss/preset-rem-to-px' |
|||
import { defineConfig, presetAttributify, presetUno } from "unocss" |
|||
import presetRemToPx from "@unocss/preset-rem-to-px" |
|||
|
|||
export default defineConfig({ |
|||
presets: [ |
|||
presetAttributify(), |
|||
presetUno(), |
|||
presetRemToPx(), |
|||
], |
|||
presets: [presetAttributify(), presetUno(), presetRemToPx()], |
|||
}) |
Loading…
Reference in new issue