mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2026-04-13 23:11:37 +08:00
Compare commits
2 Commits
d27376a800
...
9c67ea1697
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c67ea1697 | ||
|
|
4a60775c32 |
@@ -14,5 +14,5 @@ trim_trailing_whitespace = true
|
|||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
|
|
||||||
# documentation, utils
|
# documentation, utils
|
||||||
[*.{md,mdx,diff}]
|
[*.{md,diff}]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|||||||
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
if: steps.changes.outputs.src == 'true'
|
if: steps.changes.outputs.src == 'true'
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm run install:vite8
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Upload css assets
|
- name: Upload css assets
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build theme
|
- name: Build theme
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm run install:vite8
|
||||||
npm run release
|
npm run release
|
||||||
- name: Create release
|
- name: Create release
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"typescript.experimental.useTsgo": true
|
"typescript.experimental.useTsgo": false
|
||||||
}
|
}
|
||||||
@@ -1,15 +1,14 @@
|
|||||||
import js from "@eslint/js";
|
import js from "@eslint/js";
|
||||||
|
import { defineConfig } from "eslint/config";
|
||||||
import globals from "globals";
|
import globals from "globals";
|
||||||
import tseslint from "typescript-eslint";
|
import tseslint from "typescript-eslint";
|
||||||
|
|
||||||
export default tseslint.config(
|
export default defineConfig({
|
||||||
{ ignores: ["dist"] },
|
ignores: ["dist"],
|
||||||
{
|
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
||||||
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
files: ["**/*.{ts}"],
|
||||||
files: ["**/*.{ts}"],
|
languageOptions: {
|
||||||
languageOptions: {
|
ecmaVersion: 2020,
|
||||||
ecmaVersion: 2020,
|
globals: globals.browser,
|
||||||
globals: globals.browser,
|
},
|
||||||
},
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
"version": "node scripts/version.cjs",
|
"version": "node scripts/version.cjs",
|
||||||
"tr": "node scripts/translate.cjs",
|
"tr": "node scripts/translate.cjs",
|
||||||
"release": "npm run build && npm run tr",
|
"release": "npm run build && npm run tr",
|
||||||
"install:clean": "npm cache clean --force && rm -rf node_modules package-lock.json && npm install"
|
"install:clean": "npm cache clean --force && rm -rf node_modules package-lock.json && npm install",
|
||||||
|
"install:vite8": "npm install --force"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-typescript": "^7.28.4",
|
"@babel/preset-typescript": "^7.28.4",
|
||||||
@@ -33,7 +34,7 @@
|
|||||||
"sass-embedded": "^1.89.2",
|
"sass-embedded": "^1.89.2",
|
||||||
"typescript-eslint": "^8.34.1",
|
"typescript-eslint": "^8.34.1",
|
||||||
"typescript-plugin-css-modules": "^5.1.0",
|
"typescript-plugin-css-modules": "^5.1.0",
|
||||||
"vite": "^7.2.4"
|
"vite": "^8.0.0-beta.0"
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"printWidth": 120,
|
"printWidth": 120,
|
||||||
|
|||||||
@@ -564,7 +564,7 @@ export const timeline = css`
|
|||||||
}
|
}
|
||||||
.timeline-item,
|
.timeline-item,
|
||||||
.timeline-item-group {
|
.timeline-item-group {
|
||||||
padding: 16px 0;
|
padding: 12px 0;
|
||||||
.comment-text-line {
|
.comment-text-line {
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,9 +8,8 @@ import * as sass from "sass-embedded";
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import { themeInput, themePlugin } from "./src/core/vite";
|
import { themeInput, themePlugin } from "./src/core/vite";
|
||||||
|
|
||||||
dotenv.config({ quiet: true });
|
|
||||||
|
|
||||||
const require = createRequire(import.meta.url);
|
const require = createRequire(import.meta.url);
|
||||||
|
dotenv.config({ quiet: true });
|
||||||
|
|
||||||
const outDir = "dist"; // 输出目录
|
const outDir = "dist"; // 输出目录
|
||||||
const themesDir = "themes"; // 颜色主题目录
|
const themesDir = "themes"; // 颜色主题目录
|
||||||
|
|||||||
Reference in New Issue
Block a user