Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: dorny/paths-filter@v4
id: changes
with:
Expand All @@ -34,7 +34,7 @@ jobs:
if: steps.changes.outputs.src == 'true'
run: |
bun install
bun bundle:ci
bun ci

- name: Upload css assets
if: steps.build.outcome == 'success'
Expand Down
40 changes: 30 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
- vitest
- build
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"

- uses: actions/cache@v4
- uses: actions/cache@v6
with:
path: |
node_modules
Expand All @@ -33,17 +33,37 @@ jobs:

- run: bun install

- if: matrix.check == 'eslint'
run: bun eslint .
- name: Lint
if: matrix.check == 'eslint'
run: bun lint

- if: matrix.check == 'prettier'
run: bun prettier --check .
- name: Format check
if: matrix.check == 'prettier'
run: bun fmt --check

- if: matrix.check == 'tsgo'
run: bunx --bun tsgo -b
- name: Type check
if: matrix.check == 'tsgo'
run: bun tsgo -b

- if: matrix.check == 'vitest'
- name: Test
if: matrix.check == 'vitest'
run: bun vitest --run

- if: matrix.check == 'build'
- name: Build
id: build
if: matrix.check == 'build'
run: bun bundle

- name: Upload css assets
if: steps.build.outcome == 'success'
uses: actions/upload-artifact@v7
with:
name: themes
path: dist/*.css

- name: Upload templates assets
if: steps.build.outcome == 'success'
uses: actions/upload-artifact@v7
with:
name: templates
path: templates
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### 🌈 Style

- Reduce the displacement when the button is clicked.
- Remove the shadow of the administrator interface button.

#### Adaptation for version 1.27

Expand All @@ -9,12 +10,19 @@
- Fix some border corner issues.
- Fix the horizontal alignment issue of check boxes in some drop-down menus.
- Optimize heat map style.
- Optimize transparency when stacking avatars.
- Synchronize the color of branches in Git commit graph.
- Synchronize PR operation comment panel style.

#### More GitHub-like style

- Fine tune the spacing of elements in menu sub items.
- Optimize the spacing of warehouse themes on exploration pages.
- Increase the corner angle of the pop-up window.
- Synchronize the style of the search bar.
- Synchronize workflow summary style.

### 🐞 Fix

- Fix filter button overlaps with profile menu. #39
- Fix the issue where the branch menu under the manual workflow pop-up window is obscured.
4 changes: 2 additions & 2 deletions gitea/templates/repo/commit_sign_badge.tmpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 23 additions & 29 deletions gitea/templates/repo/commits_list.tmpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gitea/templates/repo/view_content.tmpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions gitea/templates/repo/view_list.tmpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions gitea/web_src/css/themes/theme-gitea-dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions gitea/web_src/css/themes/theme-gitea-light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lutinglt/gitea-github-theme",
"version": "1.26.3",
"version": "1.27.0-rc0",
"license": "Apache-2.0",
"author": {
"name": "lutinglt",
Expand All @@ -19,19 +19,20 @@
"./primer": "./primer/index.ts"
},
"scripts": {
"lint": "bun eslint .",
"fmt": "bun prettier --write .",
"lint": "bunx --bun eslint .",
"fmt": "bunx --bun prettier --write .",
"bundle": "tsgo -b && bunx --bun vite build",
"dev": "bun bundle && bun sync:theme",
"ci": "bun lint && bun bundle && bun vitest ",
"commit": "bun fmt && bun lint && bun bundle && bun vitest",
"version": "bun scripts/version.ts",
"release": "bun bundle && bun update:locale",
"sync:theme": "bun scripts/syncTheme.ts",
"update:primer": "bun scripts/buildPrimerTSToken.ts",
"update:locale": "bun scripts/translate.ts",
"update:gitea": "bun scripts/updateGitea.ts",
"install:clean": "rm -rf node_modules bun.lock bun.lockb && bun install",
"bundle:ci": "bun lint && bun bundle && bun vitest ",
"bundle:dev": "bun bundle && bun sync:theme"
"update:snapshot": "bun vitest --update",
"install:clean": "rm -rf node_modules bun.lock bun.lockb && bun install"
},
"devDependencies": {
"@catppuccin/palette": "^1.8.0",
Expand Down
15 changes: 14 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ export {
} from "./palette";
export type { DisplayColor, GitHubColor, GiteaColor, ThemeColor } from "./palette";
export { chromaVars, customThemeVars, otherThemeVars, syntaxVars, themeVars } from "./types";
export type { Ansi, Chroma, Console, Diff, GitHub, Message, Named, Other, Primary, Secondary, Syntax } from "./types";
export type {
Ansi,
Chroma,
Console,
Diff,
GitHub,
Message,
Named,
Other,
Primary,
Secondary,
Series16,
Syntax,
} from "./types";
export { deepOverride } from "./utils";
export { defineThemeConfig } from "./vite-plugin/themeConfig";
export { selectors };
Loading