Compare commits
17
Commits
e9f39a3a53
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0672735fe0 | ||
|
|
62c62956d3 | ||
|
|
97b44a4b85 | ||
|
|
309f37eead | ||
|
|
6b5a59cd87 | ||
|
|
506fb4b2f1 | ||
|
|
b7a6373e17 | ||
|
|
2220fcf48b | ||
|
|
b0024f3aa4 | ||
|
|
aba62a58c2 | ||
|
|
61d3a0c03c | ||
|
|
c2b744e742 | ||
|
|
9c47ce6b38 | ||
|
|
704b0ff3cf | ||
|
|
a9e97d9b35 | ||
|
|
da2a73d70f | ||
|
|
68e4ace92b |
No files matched your search
@@ -1,6 +1,10 @@
|
|||||||
# Manual-only release build (PLAN §7.2): no push or pull_request trigger.
|
# Manual-only release build (PLAN §7.2): no push or pull_request trigger.
|
||||||
# Each RID job runs build -> test -> publish/pack -> upload; a failing step
|
# Each RID job runs build -> test -> publish/pack -> upload; a failing step
|
||||||
# skips the rest of that job, so a RID whose tests fail produces no artifact.
|
# skips the rest of that job, so a RID whose tests fail produces no artifact.
|
||||||
|
# win-x64 packs an Inno Setup installer; linux-x64 a tar.gz; osx-arm64 a
|
||||||
|
# drag-to-Applications dmg.
|
||||||
|
# Artifacts are uploaded unzipped (upload-artifact archive: false): each RID's
|
||||||
|
# dist/ holds exactly one file, and its name becomes the artifact name.
|
||||||
# No GitHub Release is created.
|
# No GitHub Release is created.
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
@@ -27,10 +31,8 @@ jobs:
|
|||||||
os: windows-latest
|
os: windows-latest
|
||||||
- rid: linux-x64
|
- rid: linux-x64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- rid: osx-x64
|
|
||||||
os: macos-15-intel
|
|
||||||
- rid: osx-arm64
|
- rid: osx-arm64
|
||||||
os: macos-15
|
os: macos-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -55,15 +57,15 @@ jobs:
|
|||||||
--self-contained -o publish/${{ matrix.rid }}
|
--self-contained -o publish/${{ matrix.rid }}
|
||||||
|
|
||||||
- name: Pack
|
- name: Pack
|
||||||
id: pack
|
|
||||||
run: |
|
run: |
|
||||||
version="$(dotnet msbuild YKanBan/YKanBan.csproj -getProperty:Version)"
|
version="$(dotnet msbuild YKanBan/YKanBan.csproj -getProperty:Version)"
|
||||||
bash packaging/package.sh ${{ matrix.rid }} publish/${{ matrix.rid }} dist "$version"
|
bash packaging/package.sh ${{ matrix.rid }} publish/${{ matrix.rid }} dist "$version"
|
||||||
echo "name=YKanBan-$version-${{ matrix.rid }}" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.pack.outputs.name }}
|
# archive: false uploads the single matched file as-is (no zip
|
||||||
|
# wrapper); the file name doubles as the artifact name.
|
||||||
path: dist/*
|
path: dist/*
|
||||||
|
archive: false
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
@@ -1,8 +1,13 @@
|
|||||||
# YKanBan
|
# YKanBan
|
||||||
|
|
||||||
A personal, local/offline kanban board. Cross-platform desktop app built with Avalonia UI and MVVM. Each workspace stores its data in a `.ykanban` folder at the project root, Git-style.
|
A personal, local/offline kanban board. Cross-platform desktop app built with Avalonia UI and MVVM. Each workspace stores its data in a `.ykanban` folder at the project root, Git-style; start it with `ykanban <path>`.
|
||||||
|
|
||||||
See [USAGE.md](USAGE.md) for workspaces, backups, the search syntax and command-line usage.
|
- One board per workspace, with columns, cards and colored tags.
|
||||||
|
- Strict search expressions, for example `tag:bug OR title:login`.
|
||||||
|
- Markdown export of the whole board, and a tag manager.
|
||||||
|
- Multi-language interface; light, dark or system theme.
|
||||||
|
|
||||||
|
See [USAGE.md](USAGE.md) for installing, starting YKanBan, workspaces and backups, the search syntax and the settings file.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
@@ -16,7 +21,7 @@ dotnet run --project YKanBan -- <path>
|
|||||||
|
|
||||||
Packages are pinned in `YKanBan/YKanBan.csproj`.
|
Packages are pinned in `YKanBan/YKanBan.csproj`.
|
||||||
|
|
||||||
Release archives for win-x64, linux-x64, osx-x64 and osx-arm64 are produced by the manually triggered workflow in `.github/workflows/build.yml`; `packaging/package.sh` packs one published RID.
|
Release archives for win-x64, linux-x64 and osx-arm64 are produced by the manually triggered workflow in `.github/workflows/build.yml`; `packaging/package.sh` packs one published RID.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
@@ -1,96 +1,194 @@
|
|||||||
# YKanBan Usage
|
# YKanBan Usage
|
||||||
|
|
||||||
YKanBan is a local/offline kanban board. It works like Git in one respect: all data for a managed project lives in a `.ykanban` folder at the project root, so the board travels with the project folder.
|
YKanBan is a local, offline kanban board. Like Git, it keeps its data in a `.ykanban` folder inside the project folder it manages (the **workspace**). Each YKanBan window manages exactly one workspace; several windows can run at the same time on different workspaces.
|
||||||
|
|
||||||
## 1. Workspace
|
## Installing
|
||||||
|
|
||||||
- A **workspace** is a folder that directly contains a `.ykanban` directory. Only the given folder is checked; parent folders are never searched.
|
Each release build is self-contained; no .NET runtime is needed.
|
||||||
- `.ykanban` contains `ykanban.db` (the SQLite database with the board, cards and tags) and `ykanban.lock` (the exclusive lock file).
|
|
||||||
- A workspace is opened by exactly one YKanBan instance at a time. Opening the same workspace a second time shows the lock-conflict page.
|
|
||||||
|
|
||||||
### Command line
|
| Platform | Package | Executable |
|
||||||
|
|---|---|---|
|
||||||
|
| Windows x64 | `YKanBan-<version>-win-x64-setup.exe` | `YKanBan.exe` |
|
||||||
|
| Linux x64 | `YKanBan-<version>-linux-x64.tar.gz` | `YKanBan` |
|
||||||
|
| macOS Apple silicon | `YKanBan-<version>-osx-arm64.dmg` | `YKanBan.app` (see [macOS](#macos)) |
|
||||||
|
|
||||||
|
Only Apple silicon macOS is a release target; there is no Intel Mac build.
|
||||||
|
|
||||||
|
On Windows, run the installer. On Linux, extract the archive anywhere. On macOS, open the disk image and drag `YKanBan.app` into `Applications` (or any other folder). To type `ykanban <path>` as shown below, put the executable on your `PATH` under that name, for example:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Linux
|
||||||
|
ln -s /opt/YKanBan-<version>-linux-x64/YKanBan ~/.local/bin/ykanban
|
||||||
|
# macOS
|
||||||
|
ln -s /Applications/YKanBan.app/Contents/MacOS/YKanBan /usr/local/bin/ykanban
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On Windows, add the installed folder to `PATH` (the default is `C:\Program Files\YKanBan`); `ykanban` then finds `YKanBan.exe` because Windows ignores case.
|
||||||
|
|
||||||
|
## Starting YKanBan
|
||||||
|
|
||||||
|
The only way to start YKanBan is with the workspace path:
|
||||||
|
|
||||||
|
```sh
|
||||||
ykanban <path>
|
ykanban <path>
|
||||||
```
|
```
|
||||||
|
|
||||||
- `<path>` is the workspace folder to open. A relative path is resolved against the current working directory.
|
- Exactly one argument is accepted. A relative path is resolved against the current working directory, so `ykanban .` opens the current folder (but see [macOS](#macos) when starting through `open`).
|
||||||
- Exactly one argument is required. Starting without arguments, with more than one argument, with a blank argument, with an argument starting with `-` (any option form, `--help` included), or with a path that does not exist or is not a folder shows the argument error page.
|
- YKanBan looks for `.ykanban` **only in `<path>` itself**; it does not search parent folders the way Git does.
|
||||||
- If the folder exists but has no `.ykanban`, the not-initialized page is shown with an **Initialize Workspace** button. Initializing creates the database and seeds the preset columns and tags in the current interface language.
|
- There are no command-line options. An argument starting with `-` is never treated as a path; to open a folder whose name starts with `-`, write it as `./-name`.
|
||||||
|
|
||||||
## 2. Do not commit `.ykanban` to Git
|
The path must exist and be a folder. When the board cannot be shown, the whole window shows one of these pages instead:
|
||||||
|
|
||||||
`.ykanban` holds machine-local state and a lock file; it should not be committed. Add it to your **global** gitignore so it is ignored in every repository:
|
| Page | When |
|
||||||
|
|---|---|
|
||||||
|
| Invalid arguments | No argument, more than one argument, an empty or whitespace-only argument, an argument starting with `-` (including `--help`), a path the operating system cannot represent (for example one containing a NUL character), or a path that does not exist or is not a folder. Shows the usage line. |
|
||||||
|
| No workspace here | `<path>` exists but has no `.ykanban`. The **Initialize workspace** button creates one, with the columns To Do / In Progress / Done and the preset tags (both named in the current interface language). |
|
||||||
|
| Workspace locked | Another YKanBan window already has this workspace open. Close that window first. Also shown when another window takes the lock while you initialize. |
|
||||||
|
| Cannot open workspace | `.ykanban` exists but `ykanban.db` in it is missing (restore it from a backup, or delete `.ykanban` and initialize again; YKanBan never silently creates an empty board), the database was created by a newer YKanBan, is damaged or cannot be opened, or a file-system or permission error occurred (also when initializing fails for a reason other than the lock). The English error details can be selected and copied. |
|
||||||
|
|
||||||
```
|
The window title is `<workspace name> - YKanBan` while a workspace is open and just `YKanBan` on these pages.
|
||||||
# ~/.gitignore_global (or %USERPROFILE%\.gitignore_global on Windows)
|
|
||||||
.ykanban/
|
## macOS
|
||||||
|
|
||||||
|
The app is not notarized. After dragging it out of the disk image, remove the download quarantine once, or macOS refuses to open it:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
xattr -dr com.apple.quarantine YKanBan.app
|
||||||
```
|
```
|
||||||
|
|
||||||
Then enable the global ignore file once:
|
Double-clicking `YKanBan.app` starts it without a path, so it only shows the **Invalid arguments** page. Start it from a terminal instead, either through Launch Services or by running the executable inside the bundle:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
open -n -a YKanBan --args /path/to/project
|
||||||
|
/Applications/YKanBan.app/Contents/MacOS/YKanBan /path/to/project
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- Keep `-n`: without it, `open` only brings an already running YKanBan to the front and drops the path, instead of starting another window.
|
||||||
|
- Give `open` an **absolute** path. An app started by `open` runs in `/`, so `open -n -a YKanBan --args .` opens `/`, not the current folder. Running the executable inside the bundle resolves relative paths normally.
|
||||||
|
- `open -a YKanBan` finds the app once it is in `/Applications` (or another folder Launch Services knows about).
|
||||||
|
|
||||||
|
## Workspaces, Git and Backups
|
||||||
|
|
||||||
|
- **Do not commit `.ykanban` to Git.** Add it to your global ignore file once, so no repository picks it up. If `git config --global core.excludesFile` prints a file, add the line `.ykanban/` to that file; otherwise create one:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
echo ".ykanban/" >> ~/.gitignore_global
|
||||||
git config --global core.excludesFile ~/.gitignore_global
|
git config --global core.excludesFile ~/.gitignore_global
|
||||||
```
|
```
|
||||||
|
|
||||||
## 3. Backing up and migrating a workspace
|
- **Back up or move all three database files together**: `ykanban.db`, `ykanban.db-wal` and `ykanban.db-shm` in `.ykanban/`. Recent changes may still be in the `-wal` file; copying only `ykanban.db` can lose them. The simplest safe backup is to close YKanBan and copy the whole `.ykanban` folder.
|
||||||
|
- **Network shares (SMB, NFS, …) are not supported.** The database and the workspace lock rely on local file-system features that do not work reliably over a network. YKanBan does not detect this; keep workspaces on a local disk.
|
||||||
|
- `.ykanban/ykanban.lock` is held while a window has the workspace open and is released automatically when YKanBan exits or crashes. The file itself is kept empty; only the exclusive OS handle it carries has meaning.
|
||||||
|
|
||||||
The database runs in SQLite WAL mode. A workspace is therefore **three files**, not one: `ykanban.db`, `ykanban.db-wal` and `ykanban.db-shm`.
|
## Search Syntax
|
||||||
|
|
||||||
To back up or move a workspace, copy **all three files together** while YKanBan is closed. Copying only `ykanban.db` can lose the most recent changes.
|
Type an expression in the search box on the **Board** tab and click **Search** (or press Enter). Searching only happens then; there is no search while typing. The **×** button clears the box and shows every card again.
|
||||||
|
|
||||||
## 4. Search syntax
|
- Columns are always shown, even when none of their cards match.
|
||||||
|
- An empty or blank expression shows every card.
|
||||||
|
- An active search keeps the result set it produced until you search again: after adding, editing, moving or deleting cards the board shows the same matching cards as before, minus any that were deleted. Adding or editing a card does not change whether it is currently shown; press **Search** again to refresh the result.
|
||||||
|
|
||||||
The board search runs only when you press the search button (or press Enter in the search box); there is no live search. A blank query shows everything. The clear button (×) empties the box and restores the full board.
|
### Examples
|
||||||
|
|
||||||
Search keywords (`AND`, `OR`) and qualifier keys are fixed English grammar and are **never localized**.
|
| Expression | Finds cards… |
|
||||||
|
|---|---|
|
||||||
|
| `login` | whose title or content contains "login" |
|
||||||
|
| `login crash` | containing both words (anywhere in title or content) |
|
||||||
|
| `login OR signup` | containing either word |
|
||||||
|
| `tag:bug title:login` | tagged `bug` whose title contains "login" |
|
||||||
|
| `tag:bug OR tag:ui` | tagged `bug` or `ui` |
|
||||||
|
| `(tag:bug OR tag:ui) column:Done` | tagged `bug` or `ui` in the column titled "Done" |
|
||||||
|
| `"dark mode"` | whose title or content contains "dark mode" |
|
||||||
|
| `tag:"needs review"` | tagged `needs review` |
|
||||||
|
| `id:61` or `id:#61` | number 61 |
|
||||||
|
| `"http://example.com"` | containing the URL (a `:` must be quoted) |
|
||||||
|
| `"AND"` | containing the text "AND" |
|
||||||
|
|
||||||
### 4.1 Grammar
|
### Grammar
|
||||||
|
|
||||||
```
|
```
|
||||||
query := orExpr
|
query := orExpr
|
||||||
orExpr := andExpr ( OR andExpr )*
|
orExpr := andExpr ( OR andExpr )*
|
||||||
andExpr := operand ( (AND)? operand )* // adjacent terms are an implicit AND
|
andExpr := operand ( (AND)? operand )* -- neighbours are joined by AND
|
||||||
operand := atom | '(' orExpr ')'
|
operand := atom | '(' orExpr ')'
|
||||||
atom := word | phrase | qualifier
|
atom := word | phrase | qualifier
|
||||||
qualifier := key ':' (word | phrase)
|
qualifier := key ':' value
|
||||||
key := tag | title | content | id | column
|
key := tag | title | content | id | column
|
||||||
phrase := '"' any text '"' // escapes: \" to literal quote and \\ to literal backslash
|
value := word | phrase -- tag / title / content / column
|
||||||
|
| '#'? digit+ -- id: a positive decimal integer
|
||||||
|
word := one or more characters, except whitespace and ( ) " : \ ;
|
||||||
|
not equal to AND or OR
|
||||||
|
phrase := '"' one or more characters '"' -- escapes: \" and \\
|
||||||
```
|
```
|
||||||
|
|
||||||
### 4.2 Semantics
|
### Operators
|
||||||
|
|
||||||
- `AND` (explicit or by adjacency) binds tighter than `OR`; parentheses force grouping.
|
- `AND` and `OR` are operators **only in uppercase**. `and` and `or` are ordinary words.
|
||||||
- Only uppercase `AND` / `OR` are operators. Lowercase `and` / `or` are plain words. To search for the literal words `AND` or `OR`, quote them, for example `"AND"`.
|
- Writing words next to each other means `AND`: `a b` is `a AND b`.
|
||||||
- A bare word or phrase matches a **substring of the title OR the content**.
|
- `AND` binds tighter than `OR`: `a OR b c` is `a OR (b AND c)`. Use parentheses to group differently: `(a OR b) c`.
|
||||||
- `tag:NAME` matches a tag by its **exact** name.
|
- To search for the literal text `AND` or `OR`, quote it: `"AND"`, `tag:"OR"`.
|
||||||
- `column:TITLE` matches a column by its **exact** title.
|
- The search keywords (`AND`, `OR`, `tag`, `title`, `content`, `id`, `column`) are always English, whatever the interface language. Qualifier keys are lowercase only: `Tag:bug` is an unknown qualifier.
|
||||||
- `title:TEXT` matches a substring of the card title, and `content:TEXT` matches a substring of the card content.
|
|
||||||
- `id:N` matches a card by its **exact** positive integer id; an optional leading `#` is allowed (`id:#61`).
|
|
||||||
- All matching is Unicode case-insensitive (both sides are case-folded before comparing).
|
|
||||||
- Quotes allow values with spaces, for example `tag:"release notes"` or `column:"In Progress"`.
|
|
||||||
- Inside a phrase, `\"` produces a literal quote and `\\` a literal backslash.
|
|
||||||
|
|
||||||
### 4.3 Strict validation
|
### What Each Atom Matches
|
||||||
|
|
||||||
An invalid expression opens a modal error dialog and **does not run the search**. The error dialog is centered on the parent window; its text is a localized "query expression is invalid" message plus the parser's non-localized English detail. After closing it, the search box keeps what you typed and the board keeps the previous results.
|
| Atom | Matches when |
|
||||||
|
|---|---|
|
||||||
|
| word or phrase | the card title **or** content contains the text |
|
||||||
|
| `title:` value | the card title contains the text |
|
||||||
|
| `content:` value | the card content contains the text |
|
||||||
|
| `tag:` value | the card has a tag whose name **equals** the text |
|
||||||
|
| `column:` value | the card is in a column whose title **equals** the text |
|
||||||
|
| `id:` value | the card number equals the value |
|
||||||
|
|
||||||
The following are invalid:
|
- A qualifier value can be a word (`tag:bug`) or a phrase (`tag:"needs review"`). Use a phrase for values containing spaces, `(`, `)`, `:` or `\`, and for the values `AND` / `OR`.
|
||||||
|
- `id:` takes an unquoted positive integer, optionally prefixed with `#`: `id:61`, `id:#61`.
|
||||||
|
|
||||||
- unbalanced parentheses, for example `(a` or `a)`;
|
### Quoting and Escapes
|
||||||
- a dangling operator, for example `bug AND`;
|
|
||||||
- consecutive operators, for example `a AND OR b`;
|
|
||||||
- a qualifier without a value, for example `tag:`;
|
|
||||||
- a qualifier phrase separated from its key by whitespace, for example `tag: "x"` (write `tag:"x"` instead);
|
|
||||||
- an unterminated phrase, for example `"abc`;
|
|
||||||
- an empty phrase, for example `""`;
|
|
||||||
- a phrase glued to other text, for example `a"b"`;
|
|
||||||
- an invalid escape inside a phrase (a backslash not followed by `"` or `\`), for example `tag:"a\x"`;
|
|
||||||
- a bare backslash in a word, for example `a\b`;
|
|
||||||
- an unquoted qualifier value containing `:` or equal to `AND`/`OR`, for example `tag:a:b` (quote the value instead);
|
|
||||||
- an id value that is not an unquoted positive integer with an optional `#`, for example `id:0`, `id:-1` or `id:"1"`;
|
|
||||||
- an unknown qualifier key. Only `tag`, `title`, `content`, `id` and `column` are valid, and the key is case-sensitive, so `Tag:x` is an error. A colon not preceded by a valid key (for example `:foo` or `http://x`) is an error; quote such text to search for it literally.
|
|
||||||
|
|
||||||
## 5. Export
|
- A phrase is text in double quotes. Inside it, `\"` stands for a quote and `\\` for a backslash; any other backslash is an error.
|
||||||
|
- Outside quotes, `\` is not allowed at all, and `:` always starts a qualifier. Quote any text containing them: `"C:\\temp"`, `"a:b"`.
|
||||||
|
- A phrase cannot be empty, and must be separated from neighbouring words and phrases by a space or a parenthesis: write `a "b"`, not `a"b"`.
|
||||||
|
- A qualifier's phrase value follows the `:` directly: `tag:"needs review"`, not `tag: "needs review"`.
|
||||||
|
|
||||||
The **Export** button writes a human-readable Markdown snapshot of the whole board (columns, cards and the tag table) to a file you choose. The suggested file name and the timestamps in the document follow the current interface language. The export is read-only; there is no import.
|
### Case
|
||||||
|
|
||||||
|
All matching ignores case, for letters of every language: `tag:BUG` finds `bug`, and `ÄRGER` finds `ärger`. Text is otherwise compared literally: `%`, `_` and `*` have no special meaning.
|
||||||
|
|
||||||
|
Tag names and column titles must each be unique, but the uniqueness check is case-sensitive: `Bug` and `bug` are different names and can both exist. Because matching folds case, a query such as `tag:bug` then matches both.
|
||||||
|
|
||||||
|
### Invalid Expressions
|
||||||
|
|
||||||
|
An invalid expression does not search. A dialog shows "The query expression is invalid. Details: …" followed by the parser's message (always in English). After closing it, the box keeps your text for correcting and the board keeps the previous result.
|
||||||
|
|
||||||
|
These are invalid:
|
||||||
|
|
||||||
|
| Problem | Example |
|
||||||
|
|---|---|
|
||||||
|
| Unbalanced parentheses | `(tag:bug`, `tag:bug)` |
|
||||||
|
| An operator with a missing side | `bug AND`, `OR bug` |
|
||||||
|
| Consecutive operators | `a AND OR b` |
|
||||||
|
| A qualifier without a value | `tag:` |
|
||||||
|
| `AND` / `OR` as an unquoted qualifier value | `tag:AND` (write `tag:"AND"`) |
|
||||||
|
| An unterminated phrase | `"dark mode` |
|
||||||
|
| An empty phrase | `""`, `tag:""` |
|
||||||
|
| A phrase touching other text | `a"b"`, `"a"b`, `"a""b"` |
|
||||||
|
| A space between a qualifier and its phrase value | `tag: "needs review"` |
|
||||||
|
| An invalid escape in a phrase | `tag:"a\x"` |
|
||||||
|
| A backslash outside a phrase | `C:\temp` |
|
||||||
|
| An unknown qualifier key | `label:bug`, `Tag:bug`, `http://x` |
|
||||||
|
| An unquoted value containing `:` | `title:a:b` |
|
||||||
|
| An `id:` value that is not an unquoted positive integer | `id:abc`, `id:0`, `id:"61"` |
|
||||||
|
|
||||||
|
## Settings File
|
||||||
|
|
||||||
|
Settings (language, theme, card sort order, column width and the confirmation switches) are stored in `app.json`:
|
||||||
|
|
||||||
|
| Platform | Location |
|
||||||
|
|---|---|
|
||||||
|
| Windows | `%APPDATA%\YKanBan\app.json` |
|
||||||
|
| Linux, macOS | `~/.config/YKanBan/app.json` (`$XDG_CONFIG_HOME/YKanBan/app.json` when that is set) |
|
||||||
|
|
||||||
|
- The file is written when YKanBan exits. With several instances running, the last one to exit overwrites the file with its own settings.
|
||||||
|
- A language change takes effect after restarting YKanBan; a theme change applies as soon as the settings dialog is accepted.
|
||||||
|
- A missing file is normal on first run and yields the defaults. If the file exists but cannot be read (an I/O or permission error), the defaults are used.
|
||||||
|
- If the file cannot be parsed, it is saved as `app.json.bak` and the defaults are used. This also covers an invalid enum value: an unknown theme, sort or width string, or a numeric enum value, makes the whole file fall back to defaults. A section that is simply missing falls back to its own defaults.
|
||||||
@@ -0,0 +1,460 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Japanese (ja) satellite resources.
|
||||||
|
This file is embedded beside the neutral resources; see YKanBan.csproj.
|
||||||
|
-->
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<data name="App_Name" xml:space="preserve">
|
||||||
|
<value>YKanBan</value>
|
||||||
|
</data>
|
||||||
|
<data name="Common_Ok" xml:space="preserve">
|
||||||
|
<value>OK</value>
|
||||||
|
</data>
|
||||||
|
<data name="Common_Cancel" xml:space="preserve">
|
||||||
|
<value>キャンセル</value>
|
||||||
|
</data>
|
||||||
|
<data name="Common_Delete" xml:space="preserve">
|
||||||
|
<value>削除</value>
|
||||||
|
</data>
|
||||||
|
<data name="Common_Edit" xml:space="preserve">
|
||||||
|
<value>編集</value>
|
||||||
|
</data>
|
||||||
|
<data name="Main_Export" xml:space="preserve">
|
||||||
|
<value>エクスポート</value>
|
||||||
|
</data>
|
||||||
|
<data name="Main_Settings" xml:space="preserve">
|
||||||
|
<value>設定</value>
|
||||||
|
</data>
|
||||||
|
<data name="Main_About" xml:space="preserve">
|
||||||
|
<value>このアプリについて</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tab_Tags" xml:space="preserve">
|
||||||
|
<value>タグ</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tab_Board" xml:space="preserve">
|
||||||
|
<value>ボード</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_SearchPlaceholder" xml:space="preserve">
|
||||||
|
<value>検索…</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_Search" xml:space="preserve">
|
||||||
|
<value>検索</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_ClearSearch" xml:space="preserve">
|
||||||
|
<value>クリア</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_AddColumn" xml:space="preserve">
|
||||||
|
<value>列を追加</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_ColumnWidth" xml:space="preserve">
|
||||||
|
<value>列の幅</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_SortCard" xml:space="preserve">
|
||||||
|
<value>カードの並べ替え</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_SortColumn" xml:space="preserve">
|
||||||
|
<value>列の並べ替え</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_Display" xml:space="preserve">
|
||||||
|
<value>表示</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_NoColumns" xml:space="preserve">
|
||||||
|
<value>列がまだありません。</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_FilterActive" xml:space="preserve">
|
||||||
|
<value>ボードにフィルターが適用されています</value>
|
||||||
|
</data>
|
||||||
|
<data name="Board_FilterInactive" xml:space="preserve">
|
||||||
|
<value>ボードにフィルターは適用されていません</value>
|
||||||
|
</data>
|
||||||
|
<data name="Search_Error_Title" xml:space="preserve">
|
||||||
|
<value>無効な検索式</value>
|
||||||
|
</data>
|
||||||
|
<data name="Search_Error_Message" xml:space="preserve">
|
||||||
|
<value>検索式が正しくありません。詳細: {0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Sort_IdAsc" xml:space="preserve">
|
||||||
|
<value>ID 昇順</value>
|
||||||
|
</data>
|
||||||
|
<data name="Sort_IdDesc" xml:space="preserve">
|
||||||
|
<value>ID 降順</value>
|
||||||
|
</data>
|
||||||
|
<data name="Sort_CreatedAsc" xml:space="preserve">
|
||||||
|
<value>作成日時 昇順</value>
|
||||||
|
</data>
|
||||||
|
<data name="Sort_CreatedDesc" xml:space="preserve">
|
||||||
|
<value>作成日時 降順</value>
|
||||||
|
</data>
|
||||||
|
<data name="Sort_UpdatedAsc" xml:space="preserve">
|
||||||
|
<value>更新日時 昇順</value>
|
||||||
|
</data>
|
||||||
|
<data name="Sort_UpdatedDesc" xml:space="preserve">
|
||||||
|
<value>更新日時 降順</value>
|
||||||
|
</data>
|
||||||
|
<data name="Sort_TitleAsc" xml:space="preserve">
|
||||||
|
<value>タイトル 昇順</value>
|
||||||
|
</data>
|
||||||
|
<data name="Sort_TitleDesc" xml:space="preserve">
|
||||||
|
<value>タイトル 降順</value>
|
||||||
|
</data>
|
||||||
|
<data name="Column_AddCard" xml:space="preserve">
|
||||||
|
<value>カードを追加</value>
|
||||||
|
</data>
|
||||||
|
<data name="Column_Edit" xml:space="preserve">
|
||||||
|
<value>編集</value>
|
||||||
|
</data>
|
||||||
|
<data name="Column_Delete" xml:space="preserve">
|
||||||
|
<value>削除</value>
|
||||||
|
</data>
|
||||||
|
<data name="Card_Delete" xml:space="preserve">
|
||||||
|
<value>削除</value>
|
||||||
|
</data>
|
||||||
|
<data name="Card_Move" xml:space="preserve">
|
||||||
|
<value>列へ移動…</value>
|
||||||
|
</data>
|
||||||
|
<data name="ColumnDialog_AddTitle" xml:space="preserve">
|
||||||
|
<value>新しい列</value>
|
||||||
|
</data>
|
||||||
|
<data name="ColumnDialog_EditTitle" xml:space="preserve">
|
||||||
|
<value>列を編集</value>
|
||||||
|
</data>
|
||||||
|
<data name="ColumnDialog_Title" xml:space="preserve">
|
||||||
|
<value>タイトル</value>
|
||||||
|
</data>
|
||||||
|
<data name="ColumnDialog_Description" xml:space="preserve">
|
||||||
|
<value>説明</value>
|
||||||
|
</data>
|
||||||
|
<data name="ColumnDialog_InvalidTitle" xml:space="preserve">
|
||||||
|
<value>タイトルが空であるか、すでに使用されています。</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_AddTitle" xml:space="preserve">
|
||||||
|
<value>新しいカード</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_EditTitle" xml:space="preserve">
|
||||||
|
<value>カードを編集</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_Title" xml:space="preserve">
|
||||||
|
<value>タイトル</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_Content" xml:space="preserve">
|
||||||
|
<value>内容</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_Tags" xml:space="preserve">
|
||||||
|
<value>タグ</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_AddTag" xml:space="preserve">
|
||||||
|
<value>タグを追加</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_Id" xml:space="preserve">
|
||||||
|
<value>ID: {0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_Created" xml:space="preserve">
|
||||||
|
<value>作成日時: {0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_Modified" xml:space="preserve">
|
||||||
|
<value>更新日時: {0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_TimePattern" xml:space="preserve">
|
||||||
|
<value>yyyy年M月d日 HH:mm</value>
|
||||||
|
</data>
|
||||||
|
<data name="CardDialog_Error" xml:space="preserve">
|
||||||
|
<value>カードを保存できませんでした。</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagDialog_Title" xml:space="preserve">
|
||||||
|
<value>タグの追加</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagDialog_Target" xml:space="preserve">
|
||||||
|
<value>タグ</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagDialog_NoTargets" xml:space="preserve">
|
||||||
|
<value>追加できるタグがありません。</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tags_AddTag" xml:space="preserve">
|
||||||
|
<value>タグを追加</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tags_Count" xml:space="preserve">
|
||||||
|
<value>{0} 個のタグ</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tags_Empty" xml:space="preserve">
|
||||||
|
<value>タグがまだありません。</value>
|
||||||
|
</data>
|
||||||
|
<data name="Tags_Usage" xml:space="preserve">
|
||||||
|
<value>{0} 枚のカード</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagEditor_AddTitle" xml:space="preserve">
|
||||||
|
<value>新しいタグ</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagEditor_EditTitle" xml:space="preserve">
|
||||||
|
<value>タグを編集</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagEditor_Name" xml:space="preserve">
|
||||||
|
<value>名前</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagEditor_Color" xml:space="preserve">
|
||||||
|
<value>色</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagEditor_Description" xml:space="preserve">
|
||||||
|
<value>説明</value>
|
||||||
|
</data>
|
||||||
|
<data name="TagEditor_InvalidName" xml:space="preserve">
|
||||||
|
<value>名前が空であるか、すでに使用されています。</value>
|
||||||
|
</data>
|
||||||
|
<data name="DeleteTag_Confirm_Title" xml:space="preserve">
|
||||||
|
<value>タグの削除</value>
|
||||||
|
</data>
|
||||||
|
<data name="DeleteTag_Confirm_Message" xml:space="preserve">
|
||||||
|
<value>タグ「{0}」を削除しますか?{1} 枚のカードから削除されます。</value>
|
||||||
|
</data>
|
||||||
|
<data name="MoveDialog_Title" xml:space="preserve">
|
||||||
|
<value>カードの移動</value>
|
||||||
|
</data>
|
||||||
|
<data name="MoveDialog_Target" xml:space="preserve">
|
||||||
|
<value>移動先の列</value>
|
||||||
|
</data>
|
||||||
|
<data name="MoveDialog_NoTargets" xml:space="preserve">
|
||||||
|
<value>カードの移動先がありません。</value>
|
||||||
|
</data>
|
||||||
|
<data name="WidthPreset_Narrow" xml:space="preserve">
|
||||||
|
<value>狭い</value>
|
||||||
|
</data>
|
||||||
|
<data name="WidthPreset_Standard" xml:space="preserve">
|
||||||
|
<value>標準</value>
|
||||||
|
</data>
|
||||||
|
<data name="WidthPreset_Wide" xml:space="preserve">
|
||||||
|
<value>広い</value>
|
||||||
|
</data>
|
||||||
|
<data name="WidthPreset_Custom" xml:space="preserve">
|
||||||
|
<value>カスタム</value>
|
||||||
|
</data>
|
||||||
|
<data name="WidthDialog_Pixels" xml:space="preserve">
|
||||||
|
<value>ピクセル(160–720)</value>
|
||||||
|
</data>
|
||||||
|
<data name="Confirm_DeleteColumn_Title" xml:space="preserve">
|
||||||
|
<value>列の削除</value>
|
||||||
|
</data>
|
||||||
|
<data name="Confirm_DeleteColumn_Message" xml:space="preserve">
|
||||||
|
<value>列「{0}」とその {1} 枚のカードを削除しますか?</value>
|
||||||
|
</data>
|
||||||
|
<data name="Confirm_DeleteCard_Title" xml:space="preserve">
|
||||||
|
<value>カードの削除</value>
|
||||||
|
</data>
|
||||||
|
<data name="Confirm_DeleteCard_Message" xml:space="preserve">
|
||||||
|
<value>カード #{0} を削除しますか?</value>
|
||||||
|
</data>
|
||||||
|
<data name="Confirm_Discard_Title" xml:space="preserve">
|
||||||
|
<value>変更の破棄</value>
|
||||||
|
</data>
|
||||||
|
<data name="Confirm_Discard_Message" xml:space="preserve">
|
||||||
|
<value>未保存の変更を破棄しますか?</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_Argument_Title" xml:space="preserve">
|
||||||
|
<value>無効な引数</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_Argument_Message" xml:space="preserve">
|
||||||
|
<value>YKanBan の起動引数が無効です。</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_Argument_Usage" xml:space="preserve">
|
||||||
|
<value>使用法: ykanban <パス></value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_NotInitialized_Title" xml:space="preserve">
|
||||||
|
<value>ワークスペースがありません</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_NotInitialized_Message" xml:space="preserve">
|
||||||
|
<value>このフォルダーには .ykanban ワークスペースがありません:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_NotInitialized_Initialize" xml:space="preserve">
|
||||||
|
<value>ワークスペースを初期化</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_LockConflict_Title" xml:space="preserve">
|
||||||
|
<value>ワークスペースはロックされています</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_LockConflict_Message" xml:space="preserve">
|
||||||
|
<value>このワークスペースは別のインスタンスで開かれています:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Title" xml:space="preserve">
|
||||||
|
<value>設定</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Language" xml:space="preserve">
|
||||||
|
<value>言語</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Language_RestartNotice" xml:space="preserve">
|
||||||
|
<value>再起動後に有効になります</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Theme" xml:space="preserve">
|
||||||
|
<value>テーマ</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeLight" xml:space="preserve">
|
||||||
|
<value>ライト</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeDark" xml:space="preserve">
|
||||||
|
<value>ダーク</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ThemeFollowSystem" xml:space="preserve">
|
||||||
|
<value>システムに従う</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_Confirmations" xml:space="preserve">
|
||||||
|
<value>確認ダイアログ</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ConfirmDeleteCard" xml:space="preserve">
|
||||||
|
<value>カードを削除する前に確認する</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ConfirmDeleteColumn" xml:space="preserve">
|
||||||
|
<value>列を削除する前に確認する</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ConfirmDeleteTag" xml:space="preserve">
|
||||||
|
<value>タグを削除する前に確認する</value>
|
||||||
|
</data>
|
||||||
|
<data name="Settings_ConfirmDiscardEdit" xml:space="preserve">
|
||||||
|
<value>カードの編集を破棄する前に確認する</value>
|
||||||
|
</data>
|
||||||
|
<data name="About_Title" xml:space="preserve">
|
||||||
|
<value>このアプリについて</value>
|
||||||
|
</data>
|
||||||
|
<data name="About_Version" xml:space="preserve">
|
||||||
|
<value>バージョン {0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="About_Repository" xml:space="preserve">
|
||||||
|
<value>リポジトリ</value>
|
||||||
|
</data>
|
||||||
|
<data name="About_License" xml:space="preserve">
|
||||||
|
<value>ライセンス</value>
|
||||||
|
</data>
|
||||||
|
<data name="About_LicenseValue" xml:space="preserve">
|
||||||
|
<value>MIT</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetColumn_Todo" xml:space="preserve">
|
||||||
|
<value>未着手</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetColumn_Todo_Description" xml:space="preserve">
|
||||||
|
<value>計画済みで、まだ開始していないタスクです。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetColumn_InProgress" xml:space="preserve">
|
||||||
|
<value>進行中</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetColumn_InProgress_Description" xml:space="preserve">
|
||||||
|
<value>現在取り組んでいるタスクです。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetColumn_Done" xml:space="preserve">
|
||||||
|
<value>完了</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetColumn_Done_Description" xml:space="preserve">
|
||||||
|
<value>完了したタスクです。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Bug_Name" xml:space="preserve">
|
||||||
|
<value>バグ</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Bug_Description" xml:space="preserve">
|
||||||
|
<value>機能が正しく動作していません。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Documentation_Name" xml:space="preserve">
|
||||||
|
<value>ドキュメント</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Documentation_Description" xml:space="preserve">
|
||||||
|
<value>ドキュメントの改善または追加。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Duplicate_Name" xml:space="preserve">
|
||||||
|
<value>重複</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Duplicate_Description" xml:space="preserve">
|
||||||
|
<value>この課題またはプルリクエストはすでに存在します。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Enhancement_Name" xml:space="preserve">
|
||||||
|
<value>機能追加</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Enhancement_Description" xml:space="preserve">
|
||||||
|
<value>新しい機能やリクエスト。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_HelpWanted_Name" xml:space="preserve">
|
||||||
|
<value>ヘルプ募集</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_HelpWanted_Description" xml:space="preserve">
|
||||||
|
<value>特別な注意が必要です。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Invalid_Name" xml:space="preserve">
|
||||||
|
<value>無効</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Invalid_Description" xml:space="preserve">
|
||||||
|
<value>正しくないようです。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Question_Name" xml:space="preserve">
|
||||||
|
<value>質問</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Question_Description" xml:space="preserve">
|
||||||
|
<value>さらなる情報が必要です。</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Wontfix_Name" xml:space="preserve">
|
||||||
|
<value>対応予定なし</value>
|
||||||
|
</data>
|
||||||
|
<data name="PresetTag_Wontfix_Description" xml:space="preserve">
|
||||||
|
<value>対応する予定はありません。</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_FileNamePattern" xml:space="preserve">
|
||||||
|
<value>{0}-エクスポート-{1:yyyyMMdd-HHmmss}.md</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_TimePattern" xml:space="preserve">
|
||||||
|
<value>yyyy年M月d日 HH:mm:ss</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_WorkspaceHeading" xml:space="preserve">
|
||||||
|
<value># {0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_ExportedAtLine" xml:space="preserve">
|
||||||
|
<value>> エクスポート日時:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_ColumnHeading" xml:space="preserve">
|
||||||
|
<value>## 列:{0}({1})</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_TagsLine" xml:space="preserve">
|
||||||
|
<value>- タグ:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_CreatedModifiedLine" xml:space="preserve">
|
||||||
|
<value>- 作成日時:{0} 更新日時:{1}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_TagsSummaryHeading" xml:space="preserve">
|
||||||
|
<value>## タグ一覧</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_TagsTableHeader" xml:space="preserve">
|
||||||
|
<value>| 名前 | 色 | 説明 | 使用数 |</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_Done_Title" xml:space="preserve">
|
||||||
|
<value>エクスポート完了</value>
|
||||||
|
</data>
|
||||||
|
<data name="Export_Done_Message" xml:space="preserve">
|
||||||
|
<value>エクスポート先:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_OpenFailed_Title" xml:space="preserve">
|
||||||
|
<value>ワークスペースを開けません</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_OpenFailed_SchemaTooNew" xml:space="preserve">
|
||||||
|
<value>ワークスペースデータベースはより新しいバージョンの YKanBan で作成されています(schema バージョン {1}、このバージョンは {2} まで対応):{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_OpenFailed_Database" xml:space="preserve">
|
||||||
|
<value>ワークスペースデータベースを開けないか、破損しています:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_OpenFailed_DatabaseMissing" xml:space="preserve">
|
||||||
|
<value>ワークスペースデータベース(.ykanban/ykanban.db)が見つかりません。-wal、-shm ファイルと一緒にバックアップから復元するか、.ykanban フォルダーを削除してワークスペースを再初期化してください:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_OpenFailed_AccessDenied" xml:space="preserve">
|
||||||
|
<value>ワークスペースへのアクセスが拒否されました:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_OpenFailed_Io" xml:space="preserve">
|
||||||
|
<value>ワークスペースを開くときにファイルシステムエラーが発生しました:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_OpenFailed_Generic" xml:space="preserve">
|
||||||
|
<value>ワークスペースを開くときに予期しないエラーが発生しました:{0}</value>
|
||||||
|
</data>
|
||||||
|
<data name="Error_OpenFailed_Details" xml:space="preserve">
|
||||||
|
<value>詳細</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
@@ -184,6 +184,9 @@
|
|||||||
<data name="Tags_AddTag" xml:space="preserve">
|
<data name="Tags_AddTag" xml:space="preserve">
|
||||||
<value>Add Tag</value>
|
<value>Add Tag</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Tags_Count" xml:space="preserve">
|
||||||
|
<value>{0} tags</value>
|
||||||
|
</data>
|
||||||
<data name="Tags_Empty" xml:space="preserve">
|
<data name="Tags_Empty" xml:space="preserve">
|
||||||
<value>No tags yet.</value>
|
<value>No tags yet.</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -289,12 +292,6 @@
|
|||||||
<data name="Settings_Language_RestartNotice" xml:space="preserve">
|
<data name="Settings_Language_RestartNotice" xml:space="preserve">
|
||||||
<value>Takes effect after restart</value>
|
<value>Takes effect after restart</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Settings_LanguageEnglish" xml:space="preserve">
|
|
||||||
<value>English</value>
|
|
||||||
</data>
|
|
||||||
<data name="Settings_LanguageChinese" xml:space="preserve">
|
|
||||||
<value>简体中文</value>
|
|
||||||
</data>
|
|
||||||
<data name="Settings_Theme" xml:space="preserve">
|
<data name="Settings_Theme" xml:space="preserve">
|
||||||
<value>Theme</value>
|
<value>Theme</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -184,6 +184,9 @@
|
|||||||
<data name="Tags_AddTag" xml:space="preserve">
|
<data name="Tags_AddTag" xml:space="preserve">
|
||||||
<value>添加标签</value>
|
<value>添加标签</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Tags_Count" xml:space="preserve">
|
||||||
|
<value>{0} 个标签</value>
|
||||||
|
</data>
|
||||||
<data name="Tags_Empty" xml:space="preserve">
|
<data name="Tags_Empty" xml:space="preserve">
|
||||||
<value>还没有标签。</value>
|
<value>还没有标签。</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -289,12 +292,6 @@
|
|||||||
<data name="Settings_Language_RestartNotice" xml:space="preserve">
|
<data name="Settings_Language_RestartNotice" xml:space="preserve">
|
||||||
<value>重启后生效</value>
|
<value>重启后生效</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Settings_LanguageEnglish" xml:space="preserve">
|
|
||||||
<value>English</value>
|
|
||||||
</data>
|
|
||||||
<data name="Settings_LanguageChinese" xml:space="preserve">
|
|
||||||
<value>简体中文</value>
|
|
||||||
</data>
|
|
||||||
<data name="Settings_Theme" xml:space="preserve">
|
<data name="Settings_Theme" xml:space="preserve">
|
||||||
<value>主题</value>
|
<value>主题</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 48 KiB |
@@ -16,6 +16,11 @@ public sealed partial class CardViewModel : ViewModelBase {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private const int PreviewLength = 200;
|
private const int PreviewLength = 200;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Maximum number of explicit content lines shown in the card preview.
|
||||||
|
/// </summary>
|
||||||
|
private const int PreviewMaxLines = 10;
|
||||||
|
|
||||||
private readonly BoardViewModel _board;
|
private readonly BoardViewModel _board;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -70,12 +75,29 @@ public sealed partial class CardViewModel : ViewModelBase {
|
|||||||
public bool HasContent => Model.Content.Length > 0;
|
public bool HasContent => Model.Content.Length > 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the content preview, collapsed to one line and truncated.
|
/// Gets the content preview, truncated to at most 200 characters and
|
||||||
|
/// 10 explicit lines, with an ellipsis when anything was cut.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
// YYC MARK: the preview is truncated here instead of in the view because
|
||||||
|
// both a character cap and an explicit-line cap are needed, and because
|
||||||
|
// Avalonia 11.3.x renders no ellipsis when MaxLines clips wrapped text
|
||||||
|
// (fixed upstream in 12.1.2, PR #22017, never backported). Revisit after
|
||||||
|
// upgrading Avalonia.
|
||||||
public string PreviewContent {
|
public string PreviewContent {
|
||||||
get {
|
get {
|
||||||
string singleLine = Model.Content.Replace("\r", " ").Replace("\n", " ");
|
string content = Model.Content;
|
||||||
return singleLine.Length <= PreviewLength ? singleLine : singleLine[..PreviewLength] + "…";
|
|
||||||
|
// Cut at whichever boundary comes first: 200 characters or the 10th line break.
|
||||||
|
int limit = content.Length;
|
||||||
|
int breaks = 0;
|
||||||
|
for (int i = 0; i < content.Length; i++) {
|
||||||
|
if (i == PreviewLength || (content[i] == '\n' && ++breaks == PreviewMaxLines)) {
|
||||||
|
limit = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return limit < content.Length ? content[..limit] + "…" : content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
using System.Globalization;
|
||||||
|
|
||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
|
|
||||||
using YKanBan.Storage.AppData;
|
using YKanBan.Storage.AppData;
|
||||||
@@ -24,8 +26,9 @@ public sealed partial class SettingsDialogViewModel : ViewModelBase {
|
|||||||
|
|
||||||
Languages =
|
Languages =
|
||||||
[
|
[
|
||||||
new OptionItem(AppConfig.DefaultLanguage, Resources.Settings_LanguageEnglish),
|
LanguageOption(AppConfig.DefaultLanguage),
|
||||||
new OptionItem("zh-Hans", Resources.Settings_LanguageChinese),
|
LanguageOption("zh-Hans"),
|
||||||
|
LanguageOption("ja"),
|
||||||
];
|
];
|
||||||
selectedLanguage = Languages.FirstOrDefault(option => (string)option.Value == _config.Language)
|
selectedLanguage = Languages.FirstOrDefault(option => (string)option.Value == _config.Language)
|
||||||
?? Languages[0];
|
?? Languages[0];
|
||||||
@@ -126,4 +129,11 @@ public sealed partial class SettingsDialogViewModel : ViewModelBase {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void RefreshRestartNotice() =>
|
private void RefreshRestartNotice() =>
|
||||||
RestartNoticeVisible = SelectedLanguage is not null && (string)SelectedLanguage.Value != _startupLanguage;
|
RestartNoticeVisible = SelectedLanguage is not null && (string)SelectedLanguage.Value != _startupLanguage;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Builds a language option whose label is the culture's native name, so the
|
||||||
|
/// language designates itself identically under every UI culture.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="code">The language code stored in app.json.</param>
|
||||||
|
private static OptionItem LanguageOption(string code) => new(code, new CultureInfo(code).NativeName);
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
using CommunityToolkit.Mvvm.Input;
|
using CommunityToolkit.Mvvm.Input;
|
||||||
|
|
||||||
@@ -47,6 +48,12 @@ public sealed partial class TagsViewModel : ViewModelBase {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool HasNoTags => Tags.Count == 0;
|
public bool HasNoTags => Tags.Count == 0;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the localized total number of tags shown next to the add button.
|
||||||
|
/// </summary>
|
||||||
|
public string TagCountText => string.Format(
|
||||||
|
Resources.Culture ?? CultureInfo.CurrentCulture, Resources.Tags_Count, Tags.Count);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the interaction that opens the new-tag editor.
|
/// Gets the interaction that opens the new-tag editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -93,6 +100,7 @@ public sealed partial class TagsViewModel : ViewModelBase {
|
|||||||
|
|
||||||
OnPropertyChanged(nameof(HasTags));
|
OnPropertyChanged(nameof(HasTags));
|
||||||
OnPropertyChanged(nameof(HasNoTags));
|
OnPropertyChanged(nameof(HasNoTags));
|
||||||
|
OnPropertyChanged(nameof(TagCountText));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -119,8 +119,8 @@
|
|||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" Text="{x:Static lang:Resources.Board_NoColumns}"
|
<TextBlock Grid.Row="1" Text="{x:Static lang:Resources.Board_NoColumns}"
|
||||||
IsVisible="{Binding HasNoColumns}"
|
IsVisible="{Binding HasNoColumns}" Classes="Secondary"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.6"/>
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
<!-- Row 2: content preview. -->
|
<!-- Row 2: content preview. -->
|
||||||
<TextBlock Grid.Row="1" Text="{Binding PreviewContent}" IsVisible="{Binding HasContent}"
|
<TextBlock Grid.Row="1" Text="{Binding PreviewContent}" IsVisible="{Binding HasContent}"
|
||||||
TextWrapping="Wrap" FontSize="12" Opacity="0.85" Margin="0,4,0,0"/>
|
TextWrapping="Wrap" FontSize="12" Margin="0,4,0,0"/>
|
||||||
|
|
||||||
<!-- Row 3: tag badges. -->
|
<!-- Row 3: tag badges. -->
|
||||||
<ItemsControl Grid.Row="2" ItemsSource="{Binding TagBadges}" IsVisible="{Binding HasTags}"
|
<ItemsControl Grid.Row="2" ItemsSource="{Binding TagBadges}" IsVisible="{Binding HasTags}"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="6" VerticalAlignment="Center">
|
<StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="6" VerticalAlignment="Center">
|
||||||
<TextBlock Text="{Binding Title}" FontWeight="SemiBold"
|
<TextBlock Text="{Binding Title}" FontWeight="SemiBold"
|
||||||
TextTrimming="CharacterEllipsis" ToolTip.Tip="{Binding ToolTipText}"/>
|
TextTrimming="CharacterEllipsis" ToolTip.Tip="{Binding ToolTipText}"/>
|
||||||
<TextBlock Text="{Binding CardCount}" Opacity="0.6" VerticalAlignment="Center"/>
|
<TextBlock Text="{Binding CardCount}" Classes="Secondary" VerticalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Button Grid.Column="1" Margin="4,0,0,0" Padding="4,2"
|
<Button Grid.Column="1" Margin="4,0,0,0" Padding="4,2"
|
||||||
|
|||||||
@@ -31,7 +31,8 @@
|
|||||||
|
|
||||||
<Button Grid.Row="1" Content="{x:Static lang:Resources.Common_Ok}"
|
<Button Grid.Row="1" Content="{x:Static lang:Resources.Common_Ok}"
|
||||||
Click="OnCloseClick" HorizontalAlignment="Right" MinWidth="90"
|
Click="OnCloseClick" HorizontalAlignment="Right" MinWidth="90"
|
||||||
IsDefault="True" IsCancel="True"/>
|
IsDefault="True" IsCancel="True"
|
||||||
|
Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
@@ -22,8 +22,7 @@
|
|||||||
<TextBox Text="{Binding Title}"/>
|
<TextBox Text="{Binding Title}"/>
|
||||||
|
|
||||||
<TextBlock Text="{x:Static lang:Resources.CardDialog_Content}" Margin="0,6,0,0"/>
|
<TextBlock Text="{x:Static lang:Resources.CardDialog_Content}" Margin="0,6,0,0"/>
|
||||||
<TextBox Text="{Binding Content}" AcceptsReturn="True" TextWrapping="Wrap"
|
<TextBox Text="{Binding Content}" Classes="TextArea" Height="160"/>
|
||||||
VerticalContentAlignment="Top" Height="160"/>
|
|
||||||
|
|
||||||
<TextBlock Text="{x:Static lang:Resources.CardDialog_Tags}" Margin="0,6,0,0"/>
|
<TextBlock Text="{x:Static lang:Resources.CardDialog_Tags}" Margin="0,6,0,0"/>
|
||||||
<ItemsControl ItemsSource="{Binding AssignedTags}">
|
<ItemsControl ItemsSource="{Binding AssignedTags}">
|
||||||
@@ -52,10 +51,10 @@
|
|||||||
<Button Content="{x:Static lang:Resources.CardDialog_AddTag}"
|
<Button Content="{x:Static lang:Resources.CardDialog_AddTag}"
|
||||||
Command="{Binding AddTagCommand}" HorizontalAlignment="Left"/>
|
Command="{Binding AddTagCommand}" HorizontalAlignment="Left"/>
|
||||||
|
|
||||||
<StackPanel Spacing="2" IsVisible="{Binding !IsNew}" Opacity="0.7" Margin="0,8,0,0">
|
<StackPanel Spacing="2" IsVisible="{Binding !IsNew}" Margin="0,8,0,0">
|
||||||
<TextBlock Text="{Binding IdLine}"/>
|
<TextBlock Text="{Binding IdLine}" Classes="Secondary"/>
|
||||||
<TextBlock Text="{Binding CreatedLine}"/>
|
<TextBlock Text="{Binding CreatedLine}" Classes="Secondary"/>
|
||||||
<TextBlock Text="{Binding ModifiedLine}"/>
|
<TextBlock Text="{Binding ModifiedLine}" Classes="Secondary"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<TextBlock Text="{Binding ErrorMessage}"
|
<TextBlock Text="{Binding ErrorMessage}"
|
||||||
@@ -66,7 +65,8 @@
|
|||||||
|
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
||||||
Spacing="8" Margin="0,16,0,0">
|
Spacing="8" Margin="0,16,0,0">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick" MinWidth="90" IsDefault="True"/>
|
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick" MinWidth="90" IsDefault="True"
|
||||||
|
Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick" MinWidth="90"
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick" MinWidth="90"
|
||||||
IsCancel="True"/>
|
IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -19,8 +19,7 @@
|
|||||||
<TextBox Text="{Binding Title}"/>
|
<TextBox Text="{Binding Title}"/>
|
||||||
|
|
||||||
<TextBlock Text="{x:Static lang:Resources.ColumnDialog_Description}" Margin="0,6,0,0"/>
|
<TextBlock Text="{x:Static lang:Resources.ColumnDialog_Description}" Margin="0,6,0,0"/>
|
||||||
<TextBox Text="{Binding Description}" AcceptsReturn="True" TextWrapping="Wrap"
|
<TextBox Text="{Binding Description}" Classes="TextArea"/>
|
||||||
VerticalContentAlignment="Top" Height="80"/>
|
|
||||||
|
|
||||||
<TextBlock Text="{Binding ErrorMessage}"
|
<TextBlock Text="{Binding ErrorMessage}"
|
||||||
IsVisible="{Binding ErrorMessage, Converter={x:Static conv:ObjectConverters.IsNotNull}}"
|
IsVisible="{Binding ErrorMessage, Converter={x:Static conv:ObjectConverters.IsNotNull}}"
|
||||||
@@ -29,7 +28,8 @@
|
|||||||
|
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
||||||
Spacing="8" Margin="0,16,0,0">
|
Spacing="8" Margin="0,16,0,0">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick" MinWidth="90" IsDefault="True"/>
|
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick" MinWidth="90" IsDefault="True"
|
||||||
|
Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick" MinWidth="90" IsCancel="True"/>
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick" MinWidth="90" IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Delete}" Click="OnConfirmClick"
|
<Button Content="{x:Static lang:Resources.Common_Delete}" Click="OnConfirmClick"
|
||||||
MinWidth="90"/>
|
MinWidth="90" Classes="Danger"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
||||||
MinWidth="90" IsDefault="True" IsCancel="True"/>
|
MinWidth="90" IsDefault="True" IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Delete}" Click="OnConfirmClick"
|
<Button Content="{x:Static lang:Resources.Common_Delete}" Click="OnConfirmClick"
|
||||||
MinWidth="90"/>
|
MinWidth="90" Classes="Danger"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
||||||
MinWidth="90" IsDefault="True" IsCancel="True"/>
|
MinWidth="90" IsDefault="True" IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Delete}" Click="OnConfirmClick"
|
<Button Content="{x:Static lang:Resources.Common_Delete}" Click="OnConfirmClick"
|
||||||
MinWidth="90"/>
|
MinWidth="90" Classes="Danger"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
||||||
MinWidth="90" IsDefault="True" IsCancel="True"/>
|
MinWidth="90" IsDefault="True" IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnConfirmClick"
|
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnConfirmClick"
|
||||||
MinWidth="90"/>
|
MinWidth="90" Classes="Danger"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
||||||
MinWidth="90" IsDefault="True" IsCancel="True"/>
|
MinWidth="90" IsDefault="True" IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
||||||
<Button Grid.Row="1" Content="{x:Static lang:Resources.Common_Ok}"
|
<Button Grid.Row="1" Content="{x:Static lang:Resources.Common_Ok}"
|
||||||
Click="OnOkClick" HorizontalAlignment="Right" MinWidth="90"
|
Click="OnOkClick" HorizontalAlignment="Right" MinWidth="90"
|
||||||
IsDefault="True" IsCancel="True"/>
|
IsDefault="True" IsCancel="True"
|
||||||
|
Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
@@ -25,13 +25,14 @@
|
|||||||
</ComboBox.ItemTemplate>
|
</ComboBox.ItemTemplate>
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
<TextBlock Text="{x:Static lang:Resources.MoveDialog_NoTargets}"
|
<TextBlock Text="{x:Static lang:Resources.MoveDialog_NoTargets}"
|
||||||
IsVisible="{Binding !CanMove}" Opacity="0.7" TextWrapping="Wrap"/>
|
IsVisible="{Binding !CanMove}" Classes="Secondary" TextWrapping="Wrap"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
||||||
Spacing="8" Margin="0,16,0,0">
|
Spacing="8" Margin="0,16,0,0">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick"
|
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick"
|
||||||
MinWidth="90" IsDefault="True" IsEnabled="{Binding CanMove}"/>
|
MinWidth="90" IsDefault="True" IsEnabled="{Binding CanMove}"
|
||||||
|
Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
||||||
MinWidth="90" IsCancel="True"/>
|
MinWidth="90" IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
<TextBlock Grid.Row="0" Text="{Binding Message}" TextWrapping="Wrap" VerticalAlignment="Top"/>
|
||||||
<Button Grid.Row="1" Content="{x:Static lang:Resources.Common_Ok}"
|
<Button Grid.Row="1" Content="{x:Static lang:Resources.Common_Ok}"
|
||||||
Click="OnOkClick" HorizontalAlignment="Right" MinWidth="90"
|
Click="OnOkClick" HorizontalAlignment="Right" MinWidth="90"
|
||||||
IsDefault="True" IsCancel="True"/>
|
IsDefault="True" IsCancel="True"
|
||||||
|
Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
</ComboBox>
|
</ComboBox>
|
||||||
<TextBlock Text="{x:Static lang:Resources.Settings_Language_RestartNotice}"
|
<TextBlock Text="{x:Static lang:Resources.Settings_Language_RestartNotice}"
|
||||||
IsVisible="{Binding RestartNoticeVisible}"
|
IsVisible="{Binding RestartNoticeVisible}"
|
||||||
FontStyle="Italic" Opacity="0.7"/>
|
FontStyle="Italic" Classes="Secondary"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Spacing="4">
|
<StackPanel Spacing="4">
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
||||||
Spacing="8" Margin="0,16,0,0">
|
Spacing="8" Margin="0,16,0,0">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick" MinWidth="90"
|
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick" MinWidth="90"
|
||||||
IsDefault="True"/>
|
IsDefault="True" Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick" MinWidth="90"
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick" MinWidth="90"
|
||||||
IsCancel="True"/>
|
IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -22,8 +22,7 @@
|
|||||||
<ColorPicker Color="{Binding Color, Mode=TwoWay}" HorizontalAlignment="Left"/>
|
<ColorPicker Color="{Binding Color, Mode=TwoWay}" HorizontalAlignment="Left"/>
|
||||||
|
|
||||||
<TextBlock Text="{x:Static lang:Resources.TagEditor_Description}" Margin="0,6,0,0"/>
|
<TextBlock Text="{x:Static lang:Resources.TagEditor_Description}" Margin="0,6,0,0"/>
|
||||||
<TextBox Text="{Binding Description}" AcceptsReturn="True" TextWrapping="Wrap"
|
<TextBox Text="{Binding Description}" Classes="TextArea"/>
|
||||||
VerticalContentAlignment="Top" Height="70"/>
|
|
||||||
|
|
||||||
<TextBlock Text="{Binding ErrorMessage}"
|
<TextBlock Text="{Binding ErrorMessage}"
|
||||||
IsVisible="{Binding ErrorMessage, Converter={x:Static conv:ObjectConverters.IsNotNull}}"
|
IsVisible="{Binding ErrorMessage, Converter={x:Static conv:ObjectConverters.IsNotNull}}"
|
||||||
@@ -32,7 +31,8 @@
|
|||||||
|
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
||||||
Spacing="8" Margin="0,16,0,0">
|
Spacing="8" Margin="0,16,0,0">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick" MinWidth="90" IsDefault="True"/>
|
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick" MinWidth="90" IsDefault="True"
|
||||||
|
Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick" MinWidth="90" IsCancel="True"/>
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick" MinWidth="90" IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -28,13 +28,14 @@
|
|||||||
</ComboBox.ItemTemplate>
|
</ComboBox.ItemTemplate>
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
<TextBlock Text="{x:Static lang:Resources.TagDialog_NoTargets}"
|
<TextBlock Text="{x:Static lang:Resources.TagDialog_NoTargets}"
|
||||||
IsVisible="{Binding !CanAdd}" Opacity="0.7" TextWrapping="Wrap"/>
|
IsVisible="{Binding !CanAdd}" Classes="Secondary" TextWrapping="Wrap"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
||||||
Spacing="8" Margin="0,16,0,0">
|
Spacing="8" Margin="0,16,0,0">
|
||||||
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick"
|
<Button Content="{x:Static lang:Resources.Common_Ok}" Click="OnOkClick"
|
||||||
MinWidth="90" IsDefault="True" IsEnabled="{Binding CanAdd}"/>
|
MinWidth="90" IsDefault="True" IsEnabled="{Binding CanAdd}"
|
||||||
|
Theme="{DynamicResource SolidButton}" Classes="Primary"/>
|
||||||
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
<Button Content="{x:Static lang:Resources.Common_Cancel}" Click="OnCancelClick"
|
||||||
MinWidth="90" IsCancel="True"/>
|
MinWidth="90" IsCancel="True"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -11,13 +11,16 @@
|
|||||||
|
|
||||||
<Grid RowDefinitions="Auto,*" Margin="8">
|
<Grid RowDefinitions="Auto,*" Margin="8">
|
||||||
|
|
||||||
<Button Grid.Row="0" Command="{Binding AddNewTagCommand}"
|
<Grid Grid.Row="0" ColumnDefinitions="*,Auto" Margin="0,0,0,8">
|
||||||
HorizontalAlignment="Right" Margin="0,0,0,8">
|
<TextBlock Grid.Column="0" Text="{Binding TagCountText}"
|
||||||
|
VerticalAlignment="Center" Classes="Secondary" FontSize="13"/>
|
||||||
|
<Button Grid.Column="1" Command="{Binding AddNewTagCommand}">
|
||||||
<StackPanel Orientation="Horizontal" Spacing="6">
|
<StackPanel Orientation="Horizontal" Spacing="6">
|
||||||
<icons:PackIconLucide Kind="Plus" Width="16" Height="16"/>
|
<icons:PackIconLucide Kind="Plus" Width="16" Height="16"/>
|
||||||
<TextBlock Text="{x:Static lang:Resources.Tags_AddTag}"/>
|
<TextBlock Text="{x:Static lang:Resources.Tags_AddTag}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||||||
<ItemsControl ItemsSource="{Binding Tags}">
|
<ItemsControl ItemsSource="{Binding Tags}">
|
||||||
@@ -33,8 +36,8 @@
|
|||||||
<StackPanel Grid.Column="1" Spacing="2">
|
<StackPanel Grid.Column="1" Spacing="2">
|
||||||
<TextBlock Text="{Binding Name}" FontWeight="SemiBold"/>
|
<TextBlock Text="{Binding Name}" FontWeight="SemiBold"/>
|
||||||
<TextBlock Text="{Binding Description}" IsVisible="{Binding HasDescription}"
|
<TextBlock Text="{Binding Description}" IsVisible="{Binding HasDescription}"
|
||||||
Opacity="0.7" FontSize="12" TextWrapping="Wrap"/>
|
Classes="Secondary" FontSize="12" TextWrapping="Wrap"/>
|
||||||
<TextBlock Text="{Binding UsageText}" Opacity="0.6" FontSize="12"/>
|
<TextBlock Text="{Binding UsageText}" Classes="Secondary" FontSize="12"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Button Grid.Column="2" Command="{Binding EditCommand}" Padding="4,2" Margin="4,0"
|
<Button Grid.Column="2" Command="{Binding EditCommand}" Padding="4,2" Margin="4,0"
|
||||||
@@ -55,8 +58,8 @@
|
|||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" Text="{x:Static lang:Resources.Tags_Empty}"
|
<TextBlock Grid.Row="1" Text="{x:Static lang:Resources.Tags_Empty}"
|
||||||
IsVisible="{Binding HasNoTags}"
|
IsVisible="{Binding HasNoTags}" Classes="Secondary"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.6"/>
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
<StackPanel Grid.Column="0" Spacing="2" VerticalAlignment="Center">
|
<StackPanel Grid.Column="0" Spacing="2" VerticalAlignment="Center">
|
||||||
<TextBlock Text="{Binding WorkspaceName}" FontSize="18" FontWeight="SemiBold"
|
<TextBlock Text="{Binding WorkspaceName}" FontSize="18" FontWeight="SemiBold"
|
||||||
TextTrimming="CharacterEllipsis"/>
|
TextTrimming="CharacterEllipsis"/>
|
||||||
<TextBlock Text="{Binding WorkspacePath}" FontSize="12" Opacity="0.65"
|
<TextBlock Text="{Binding WorkspacePath}" FontSize="12" Classes="Secondary"
|
||||||
TextTrimming="CharacterEllipsis"/>
|
TextTrimming="CharacterEllipsis"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>net10.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<Version>0.2.0</Version>
|
<Version>0.3.0</Version>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||||
@@ -35,6 +35,9 @@
|
|||||||
<EmbeddedResource Update="Assets/Locales/Resources.zh-Hans.resx">
|
<EmbeddedResource Update="Assets/Locales/Resources.zh-Hans.resx">
|
||||||
<LogicalName>YKanBan.Resources.zh-Hans.resources</LogicalName>
|
<LogicalName>YKanBan.Resources.zh-Hans.resources</LogicalName>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Update="Assets/Locales/Resources.ja.resx">
|
||||||
|
<LogicalName>YKanBan.Resources.ja.resources</LogicalName>
|
||||||
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -0,0 +1,77 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="100%" height="100%">
|
||||||
|
<defs>
|
||||||
|
<!-- 背景渐变:从左上到右下,亮蓝到深蓝,中点为 #1e90ff -->
|
||||||
|
<linearGradient id="bgGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||||
|
<stop offset="0%" stop-color="#6ba8ff" />
|
||||||
|
<stop offset="50%" stop-color="#1e90ff" />
|
||||||
|
<stop offset="100%" stop-color="#1e3a8a" />
|
||||||
|
</linearGradient>
|
||||||
|
|
||||||
|
<!-- 第 1 列渐变 - 青色(原第 3 列) -->
|
||||||
|
<linearGradient id="col1Grad" x1="0%" y1="0%" x2="0%" y2="100%">
|
||||||
|
<stop offset="0%" stop-color="#5eead4" />
|
||||||
|
<stop offset="100%" stop-color="#14b8a6" />
|
||||||
|
</linearGradient>
|
||||||
|
|
||||||
|
<!-- 第 2 列渐变 - 紫色 -->
|
||||||
|
<linearGradient id="col2Grad" x1="0%" y1="0%" x2="0%" y2="100%">
|
||||||
|
<stop offset="0%" stop-color="#c4b5fd" />
|
||||||
|
<stop offset="100%" stop-color="#7c3aed" />
|
||||||
|
</linearGradient>
|
||||||
|
|
||||||
|
<!-- 第 3 列渐变 - 浅蓝(原第 1 列) -->
|
||||||
|
<linearGradient id="col3Grad" x1="0%" y1="0%" x2="0%" y2="100%">
|
||||||
|
<stop offset="0%" stop-color="#93c5fd" />
|
||||||
|
<stop offset="100%" stop-color="#3b82f6" />
|
||||||
|
</linearGradient>
|
||||||
|
|
||||||
|
<!-- 列顶部高光渐变 -->
|
||||||
|
<linearGradient id="highlightGrad" x1="0%" y1="0%" x2="0%" y2="100%">
|
||||||
|
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.35" />
|
||||||
|
<stop offset="100%" stop-color="#ffffff" stop-opacity="0" />
|
||||||
|
</linearGradient>
|
||||||
|
|
||||||
|
<!-- 背景阴影 -->
|
||||||
|
<filter id="bgShadow" x="-10%" y="-10%" width="120%" height="120%">
|
||||||
|
<feDropShadow dx="0" dy="20" stdDeviation="30" flood-color="#000000" flood-opacity="0.4" />
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<!-- 列阴影 -->
|
||||||
|
<filter id="colShadow" x="-20%" y="-10%" width="140%" height="130%">
|
||||||
|
<feDropShadow dx="0" dy="16" stdDeviation="20" flood-color="#000000" flood-opacity="0.4" />
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
<!-- 基础背景框 -->
|
||||||
|
<rect x="64" y="64" width="896" height="896" rx="200" fill="url(#bgGrad)" filter="url(#bgShadow)" />
|
||||||
|
|
||||||
|
<!-- 第 1 列:3 个子框,最高,底部对齐 y=820,青色 -->
|
||||||
|
<g>
|
||||||
|
<rect x="187" y="200" width="170" height="620" rx="36" fill="url(#col1Grad)" stroke="#ffffff" stroke-opacity="0.25" stroke-width="2" filter="url(#colShadow)" />
|
||||||
|
<rect x="187" y="200" width="170" height="200" rx="36" fill="url(#highlightGrad)" />
|
||||||
|
<!-- 子框:水平居中,从顶部往下排列 -->
|
||||||
|
<rect x="217" y="220" width="110" height="60" rx="16" fill="#ffffff" fill-opacity="0.3" />
|
||||||
|
<rect x="217" y="310" width="110" height="60" rx="16" fill="#ffffff" fill-opacity="0.3" />
|
||||||
|
<rect x="217" y="400" width="110" height="60" rx="16" fill="#ffffff" fill-opacity="0.3" />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<!-- 第 2 列:2 个子框,中等高度,底部对齐 y=820,紫色 -->
|
||||||
|
<g>
|
||||||
|
<rect x="427" y="340" width="170" height="480" rx="36" fill="url(#col2Grad)" stroke="#ffffff" stroke-opacity="0.25" stroke-width="2" filter="url(#colShadow)" />
|
||||||
|
<rect x="427" y="340" width="170" height="180" rx="36" fill="url(#highlightGrad)" />
|
||||||
|
<!-- 子框:水平居中,从顶部往下排列 -->
|
||||||
|
<rect x="457" y="360" width="110" height="60" rx="16" fill="#ffffff" fill-opacity="0.3" />
|
||||||
|
<rect x="457" y="450" width="110" height="60" rx="16" fill="#ffffff" fill-opacity="0.3" />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<!-- 第 3 列:1 个子框,最矮,底部对齐 y=820,浅蓝 -->
|
||||||
|
<g>
|
||||||
|
<rect x="667" y="480" width="170" height="340" rx="36" fill="url(#col3Grad)" stroke="#ffffff" stroke-opacity="0.25" stroke-width="2" filter="url(#colShadow)" />
|
||||||
|
<rect x="667" y="480" width="170" height="140" rx="36" fill="url(#highlightGrad)" />
|
||||||
|
<!-- 子框:水平居中,从顶部往下排列 -->
|
||||||
|
<rect x="697" y="500" width="110" height="60" rx="16" fill="#ffffff" fill-opacity="0.3" />
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<!-- 内部边框提亮(Fluent 细节) -->
|
||||||
|
<rect x="64" y="64" width="896" height="896" rx="200" fill="none" stroke="#ffffff" stroke-opacity="0.08" stroke-width="2" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 3.8 KiB |
@@ -1,58 +0,0 @@
|
|||||||
# Manual acceptance checklist
|
|
||||||
|
|
||||||
Everything here is verified by hand on the local Windows build. Automated tests cover storage, the search parser/compiler and the export; the UI is verified manually.
|
|
||||||
|
|
||||||
## Startup and workspace
|
|
||||||
|
|
||||||
- [ ] `ykanban <path>` with a valid workspace opens the board.
|
|
||||||
- [ ] `ykanban` with no arguments shows the argument error page.
|
|
||||||
- [ ] `ykanban a b` (more than one argument) shows the argument error page.
|
|
||||||
- [ ] A path that does not exist shows the folder-missing page.
|
|
||||||
- [ ] An existing folder without `.ykanban` shows the not-initialized page with an **Initialize Workspace** button; after clicking it the board opens with the preset columns and tags.
|
|
||||||
- [ ] Opening the same workspace in a second instance shows the lock-conflict page; closing the first instance lets the second open.
|
|
||||||
- [ ] The window title is `<workspace name> - YKanBan`, or just `YKanBan` on an error page.
|
|
||||||
|
|
||||||
## Language
|
|
||||||
|
|
||||||
- [ ] A new workspace is seeded with columns and tags in the language active at creation time.
|
|
||||||
- [ ] Switching the language in Settings shows the "takes effect after restart" notice and the change only applies after a restart (restart-effective item).
|
|
||||||
- [ ] After restarting in Chinese, the whole UI is Chinese.
|
|
||||||
|
|
||||||
## Theme
|
|
||||||
|
|
||||||
- [ ] Settings offers light / dark / follow system; switching applies immediately and the interface recolors completely (theme three-state item).
|
|
||||||
- [ ] Cancelling Settings keeps the previous theme; accepting keeps the chosen one.
|
|
||||||
- [ ] Custom surfaces (top bar, columns, cards, error text) recolor with the theme.
|
|
||||||
- [ ] Tag colors always show their raw `#RRGGBB` value in both themes.
|
|
||||||
|
|
||||||
## Board
|
|
||||||
|
|
||||||
- [ ] Columns run left to right and cards top to bottom; there is no drag.
|
|
||||||
- [ ] A card shows the bold `#id` with its title (or just `#id` when untitled), a truncated content preview and colored tag badges; no timestamps.
|
|
||||||
- [ ] Clicking a card body opens the editor; the card menu opens in place.
|
|
||||||
- [ ] Add, edit and delete a column and a card; deletes honor the confirmation toggles.
|
|
||||||
- [ ] The column editor rejects an empty or duplicate title with an inline error.
|
|
||||||
- [ ] Editing a card with no effective change writes nothing; cancelling writes nothing; closing with unsaved changes asks to discard when that toggle is on.
|
|
||||||
- [ ] Tag assignment in the card editor adds existing tags and removes them with the ×; the picker only offers tags not already assigned.
|
|
||||||
- [ ] Move a card to another column; with only one column the picker reports there is nowhere to move.
|
|
||||||
- [ ] The Display flyout changes column width (narrow/standard/wide/custom) and card/column sort immediately.
|
|
||||||
|
|
||||||
## Search
|
|
||||||
|
|
||||||
- [ ] Pressing the search button and pressing Enter in the search box behave the same.
|
|
||||||
- [ ] A blank query shows everything; the clear button restores the full board.
|
|
||||||
- [ ] A valid query filters cards while keeping every column (empty columns stay visible).
|
|
||||||
- [ ] The filter status icon is dimmed when not filtering and solid while filtering, and its tooltip states the current status.
|
|
||||||
- [ ] An invalid query opens the error dialog with the localized message plus the English detail; after closing, the typed text and the previous results remain.
|
|
||||||
- [ ] Search state persists while switching tabs.
|
|
||||||
|
|
||||||
## Tags
|
|
||||||
|
|
||||||
- [ ] The tag tab lists color, name, description and usage count.
|
|
||||||
- [ ] Add, rename, recolor (with the color picker) and re-describe a tag; the board refreshes after a change.
|
|
||||||
- [ ] Deleting a tag warns that it will be removed from N cards and honors the confirmation toggle.
|
|
||||||
|
|
||||||
## Export
|
|
||||||
|
|
||||||
- [ ] Export prompts for a file with a language-appropriate default name and writes Markdown with language-appropriate timestamps, matching the current interface language (export-language-follows-UI item).
|
|
||||||
- [ ] After a successful export a confirmation dialog shows the written path.
|
|
||||||
-321
@@ -1,321 +0,0 @@
|
|||||||
# YKanBan 项目计划(v1.8)
|
|
||||||
|
|
||||||
> 本文档是 YKanBan 的完整项目计划,由需求讨论定稿,供执行者照此实施。
|
|
||||||
> 所有设计决策均为定稿结论;如实施中发现问题,应回到计划维护者处修订,而不是自行偏离。
|
|
||||||
|
|
||||||
## 1. 项目概述
|
|
||||||
|
|
||||||
个人使用的本地/离线看板工具。跨平台桌面应用(Windows / Linux / macOS),类 Git 的工作方式:在被管理项目根目录下创建 `.ykanban` 文件夹存储看板数据。Avalonia UI,MVVM 模式。每个 YKanBan 进程管理一个工作区,可多实例并行(同一工作区由锁文件互斥)。界面默认英文,附简体中文(ResX,切换重启生效,见 §8);主题支持亮色/暗色/跟随系统(默认跟随系统,即时生效,见 §5.9)。
|
|
||||||
|
|
||||||
## 2. 存储设计
|
|
||||||
|
|
||||||
### 2.1 存储模型(类 Git)
|
|
||||||
|
|
||||||
- 每个工作区(定义见 §4)= 一个其下存在 `.ykanban` 的路径;`.ykanban/` 内含 `ykanban.db`(SQLite 数据库)与 `ykanban.lock`(锁文件)
|
|
||||||
- 打开文件夹时**只检查当前目录**是否存在 `.ykanban`,不向上递归查找;不存在则询问用户是否在当前目录初始化
|
|
||||||
|
|
||||||
### 2.2 数据库配置
|
|
||||||
|
|
||||||
- `PRAGMA journal_mode=WAL` + `PRAGMA synchronous=NORMAL`
|
|
||||||
- 每个连接显式 `PRAGMA foreign_keys=ON`(Microsoft.Data.Sqlite 默认关闭,不开则外键与 CASCADE 均不生效)
|
|
||||||
- 不做退出时 checkpoint
|
|
||||||
- 备份/迁移必须同时复制 `ykanban.db`、`ykanban.db-wal`、`ykanban.db-shm` 三个文件(此要求写入 USAGE.md)
|
|
||||||
- `PRAGMA user_version` 管理 schema 版本,启动时按版本增量迁移
|
|
||||||
|
|
||||||
### 2.3 独占访问
|
|
||||||
|
|
||||||
- 每个 `.ykanban` 同一时刻仅允许一个 YKanBan 实例打开
|
|
||||||
- 机制:独占打开 `ykanban.lock`(.NET `FileStream` + `FileShare.None`)持有至退出;锁文件内写 PID/机器名/时间用于诊断;程序崩溃/断电由 OS 自动释放,无残留问题
|
|
||||||
- 锁冲突场景:同机多实例指向同一工作区,或他机经网络共享打开同一 `.ykanban`;界面显示锁冲突页,不提供其他操作
|
|
||||||
|
|
||||||
### 2.4 与 Git 的关系
|
|
||||||
|
|
||||||
- `.ykanban` 不应提交进 Git,建议用户将其加入全局 gitignore(写入 USAGE.md,与 WAL 三文件复制要求并列)
|
|
||||||
|
|
||||||
## 3. 看板数据模型
|
|
||||||
|
|
||||||
单看板,列 → 卡片两级。时间戳一律 INTEGER Unix **秒**。
|
|
||||||
|
|
||||||
```
|
|
||||||
columns: id INTEGER PK AUTOINCREMENT,
|
|
||||||
title TEXT NOT NULL UNIQUE CHECK (length(title) > 0),
|
|
||||||
description TEXT NOT NULL DEFAULT '',
|
|
||||||
created_at INT NOT NULL, updated_at INT NOT NULL
|
|
||||||
cards: id INTEGER PK AUTOINCREMENT,
|
|
||||||
column_id INT NOT NULL → columns.id ON DELETE CASCADE,
|
|
||||||
title TEXT NOT NULL DEFAULT '',
|
|
||||||
content TEXT NOT NULL DEFAULT '',
|
|
||||||
created_at INT NOT NULL, updated_at INT NOT NULL
|
|
||||||
tags: id INTEGER PK AUTOINCREMENT,
|
|
||||||
name TEXT NOT NULL UNIQUE CHECK (length(name) > 0),
|
|
||||||
color TEXT NOT NULL CHECK (GLOB '#'+六位十六进制,即 #RRGGBB 形态),
|
|
||||||
description TEXT NOT NULL DEFAULT ''
|
|
||||||
card_tags: (card_id, tag_id) 复合主键,双向 ON DELETE CASCADE
|
|
||||||
```
|
|
||||||
|
|
||||||
行为约定:
|
|
||||||
|
|
||||||
- 数据校验尽量在 DDL 层完成(CHECK / UNIQUE / FOREIGN KEY),保证入库即合法:
|
|
||||||
- `columns.title`:非空、全表唯一(BINARY 严格比较),无字符集限制
|
|
||||||
- `tags.name`:仅要求非空串,**完全放开**——无字符集/长度限制,允许空格、emoji、保留字符;UI 输入不做 trim
|
|
||||||
- `tags.color`:仅接受 `#RRGGBB` 形态(GLOB 校验)
|
|
||||||
- 所有 description 字段无长度上限
|
|
||||||
- 时间戳刷新规则:
|
|
||||||
- `cards.updated_at` 仅在卡片编辑模态点"确认"写入时刷新(新建卡片时 created_at = updated_at)
|
|
||||||
- 菜单"移动到列"只改 `column_id`,不刷新卡片 updated_at
|
|
||||||
- `columns.updated_at` 仅在列自身标题或 description 变更时刷新
|
|
||||||
- 编辑模态确认时内容无变化 → 不写库、不刷新时间戳
|
|
||||||
- 卡片编辑确认涉及 cards + card_tags 多表写入,必须包在单个事务中
|
|
||||||
- 级联删除全场景由 DDL 覆盖,无需触发器(前提 `PRAGMA foreign_keys=ON`):
|
|
||||||
|
|
||||||
| 删除操作 | 级联链 |
|
|
||||||
|---|---|
|
|
||||||
| 删 column | → 该列所有 cards → 这些卡片的 card_tags(级联链式传导) |
|
|
||||||
| 删 card | → 该卡的 card_tags |
|
|
||||||
| 删 tag | → 相关 card_tags(= 卡片卸载该标签,卡片保留) |
|
|
||||||
|
|
||||||
- 禁止手动排序:列内/列间顺序由显示规则计算(id 默认 / 创建时间 / 最后修改时间 / 标题字母序),界面随时可切换、全局一份存 `app.json`(见 §4.3);所有排序一律以 id 升序兜底;标题排序按码点(BINARY collation)
|
|
||||||
- 无标题的唯一表示是空串(`title TEXT NOT NULL DEFAULT ''`);无标题卡片列内不显示占位标题;按标题排序时视为空串
|
|
||||||
- 删列 → 级联删卡(UI 二次确认,提示将删 N 张卡片);卡片硬删除(二次确认)
|
|
||||||
- tag 永不自动清理(`tags` 表保留无引用标签),配标签管理界面
|
|
||||||
- 初始化预置三列:初始化时按当前语言直接从 ResX 资源读取(英文 To Do / In Progress / Done;中文 待办 / 进行中 / 已完成),随**创建时刻**的语言写入,此后即为数据、不再随语言切换变化(见 §8)
|
|
||||||
- 数量级参考:卡片 ≤ 10000,列 ≤ 100
|
|
||||||
|
|
||||||
## 4. 应用工作流与主界面骨架
|
|
||||||
|
|
||||||
**术语**:工作区 = 其下存在 `.ykanban` 的路径
|
|
||||||
|
|
||||||
### 4.1 实例模型与启动
|
|
||||||
|
|
||||||
- 每个 YKanBan 进程独立管理一个工作区;多实例可并行运行;同一工作区由锁文件互斥(见 §2.3)
|
|
||||||
- `ykanban <path>`:本实例打开该工作区(主启动方式)
|
|
||||||
- `ykanban`(无参数)或非法参数:显示**参数错误页**(全窗口错误页之一,见 §4.4)
|
|
||||||
- 窗口标题:`工作区名 - YKanBan`;无有效工作区(错误页状态)时仅 `YKanBan`
|
|
||||||
|
|
||||||
### 4.2 连接管理
|
|
||||||
|
|
||||||
- 单连接 + 单锁:打开工作区成功即持有,进程生命周期内不释放;正常退出时释放,崩溃/断电由 OS 自动释放
|
|
||||||
|
|
||||||
### 4.3 全局配置
|
|
||||||
|
|
||||||
全局配置为 `app.json`(Newtonsoft.Json 13.0.4),位置 `%APPDATA%/YKanBan/`(各平台等价目录):
|
|
||||||
|
|
||||||
- 强类型根对象 `AppConfig` 整体序列化,根含 `"version": 1` 迁移钩子
|
|
||||||
- 字段:语言(`Language`,`"en"` 默认)、主题(`Theme`,`"FollowSystem"` 默认)、卡片排序选择、列宽、四类确认开关
|
|
||||||
- 写入时机:**应用退出时一次性写盘**(直接写,不做原子替换);崩溃/断电丢失当次会话的设置变更(已接受:配置低价值)
|
|
||||||
- 读取:文件缺失 → 默认值启动照常运行(下次退出自然创建);解析失败 → 备份为 `app.json.bak` → 以默认值启动
|
|
||||||
|
|
||||||
### 4.4 全窗口错误页体系
|
|
||||||
|
|
||||||
所有错误页**覆盖整个窗口内容区**(替代一切正常显示):
|
|
||||||
|
|
||||||
| 错误页 | 触发条件 | 内容 |
|
|
||||||
|---|---|---|
|
|
||||||
| 参数错误页 | 无参数 / 非法参数启动 | 参数错误提示 + 正确用法说明(`ykanban <path>`) |
|
|
||||||
| 目录不存在页 | 参数路径不存在 | 提示 |
|
|
||||||
| 未初始化页 | 路径存在但无 `.ykanban` | 提示 + 初始化按钮(唯一带操作的错误页) |
|
|
||||||
| 锁冲突页 | 锁文件被占用 | 仅提示,无任何操作 |
|
|
||||||
|
|
||||||
正常视图 = 顶部显示区域 + TabControl(见 §5)。
|
|
||||||
|
|
||||||
## 5. 看板核心界面
|
|
||||||
|
|
||||||
### 5.1 顶部显示区域
|
|
||||||
|
|
||||||
- 工作区名称(= 文件夹名)+ 小一号字显示完整路径
|
|
||||||
- 最右侧:**导出、设置、关于**三按钮同排
|
|
||||||
|
|
||||||
### 5.2 TabControl 两选项卡
|
|
||||||
|
|
||||||
**标签选项卡**(标签管理器,风格类 GitHub issue labels 页):
|
|
||||||
|
|
||||||
- 条目 = 颜色标记 + 名称 + 描述 + 使用数(N 张卡片)
|
|
||||||
- 支持新增、删除(提示"将从 N 张卡片移除该标签")、重命名、改颜色、改描述
|
|
||||||
|
|
||||||
**看板选项卡**:
|
|
||||||
|
|
||||||
- 搜索栏(点击搜索按钮才执行,无实时搜索,带 × 一键清空);右侧依次:新增列按钮、列宽调整按钮、排序 combobox
|
|
||||||
- 列宽:模态选择预设窄/标准/宽或手动像素值(范围 160–720,默认"标准"= 320),全局生效,持久化到 app.json
|
|
||||||
- 看板区域(与 GitHub Projects 基本一致):列左→右横排,卡片上→下展开;**无拖拽**
|
|
||||||
- 列右上角:+新建卡片、⋯菜单(编辑、删除);"编辑" = 标题 + description 编辑模态
|
|
||||||
- 卡右上角:⋯菜单(删除、移动到列…);点击卡片本体 → 编辑模态
|
|
||||||
- 卡片条目显示 4 样内容:`#id`(加粗)与标题同行(无标题则仅 `#61`;有标题如 `#61 Foo bar`)、内容按固定字数截断(约 200 字)、标签列于内容下方(彩色徽章:颜色 + 名称)。不显示时间戳
|
|
||||||
|
|
||||||
### 5.3 模态窗口原则
|
|
||||||
|
|
||||||
非 SPA。新增列 / 新增卡片 / 编辑卡片 / 各类删除确认等操作一律通过模态对话框弹出。
|
|
||||||
|
|
||||||
- 所有模态窗口在父窗口中央弹出(Avalonia `WindowStartupLocation="CenterOwner"` + `ShowDialog(owner)`)
|
|
||||||
- 搜索表达式错误对话框:纯提示型模态(无确认语义),同样父窗口居中(见 §6.2)
|
|
||||||
- 新增列 / 编辑列模态:标题(必填,受 DDL 非空+唯一约束)+ description(可空)
|
|
||||||
|
|
||||||
### 5.4 卡片编辑模态
|
|
||||||
|
|
||||||
- 字段:标题(可空,空串 = 无标题)、内容(多行)、标签区、只读 `#id` / 创建时间 / 修改时间(新增时未生成则不显示)
|
|
||||||
- 底部:确认(当前数据一次性写入数据库)/ 取消(丢弃更改)
|
|
||||||
- 编辑对话框是一个工作单元:确认时一次性落库(单事务,见 §3),取消不产生任何写入;其余操作(删除、移动等)仍即时写库
|
|
||||||
- 确认时内容无变化 → 不写库、不刷新时间戳
|
|
||||||
- 标签指派:编辑模态标签区显示已指派标签(各带 × 移除),"添加标签"按钮弹**嵌套模态** = 已有标签搜索/列表 + 新建标签入口,选中即添加,可反复打开继续添加下一个
|
|
||||||
|
|
||||||
### 5.5 确认对话框开关
|
|
||||||
|
|
||||||
按类型分设独立开关:删除卡片 / 删除列 / 删除标签 / 丢弃编辑确认,承载于设置模态,存 app.json。
|
|
||||||
|
|
||||||
### 5.6 设置模态
|
|
||||||
|
|
||||||
入口 = 顶部显示区域右侧"设置"按钮,承载各类全局设置:
|
|
||||||
|
|
||||||
- 语言选择(英文 / 简体中文),切换后显示"重启后生效"提示(提示文本本身为资源键)
|
|
||||||
- 主题选择(亮色 / 暗色 / 跟随系统),切换后**即时生效**,无重启提示(与语言项的行为差异)
|
|
||||||
- 四类确认开关(见 §5.5)
|
|
||||||
|
|
||||||
### 5.7 关于模态
|
|
||||||
|
|
||||||
应用名、版本号、仓库链接、许可证。入口 = 顶部显示区域右侧,与导出、设置按钮同排。
|
|
||||||
|
|
||||||
### 5.8 导出
|
|
||||||
|
|
||||||
- 点击后弹系统保存文件对话框,默认文件名按当前语言生成(模式为资源键,**精确到秒**):英文 `MyRepo-export-20260930-142537.md`;中文 `MyRepo-导出-20260930-142537.md`
|
|
||||||
- 人类可读格式,无回导需求;模板文本直接读取 ResX 资源(见 §8),导出语言跟随当前界面语言:
|
|
||||||
|
|
||||||
```markdown
|
|
||||||
# 工作区名
|
|
||||||
> 导出时间:2026-09-30 14:25:37 (全文时间戳——导出时间与卡片创建/修改时间——格式随语言:英文 yyyy-MM-dd HH:mm:ss;中文 yyyy年M月d日 HH:mm)
|
|
||||||
|
|
||||||
## 列:进行中 (列按 id 序,标题后附卡片数;列 description 紧随标题下显示)
|
|
||||||
|
|
||||||
### #61 Foo bar
|
|
||||||
正文内容…
|
|
||||||
|
|
||||||
- 标签:`bug` `ui`
|
|
||||||
- 创建:2026-09-01 10:00 修改:2026-09-28 18:30
|
|
||||||
|
|
||||||
## 标签总表
|
|
||||||
| 名称 | 颜色 | 描述 | 使用数 |
|
|
||||||
```
|
|
||||||
|
|
||||||
- 空列也保留(体现看板结构);无标题卡片以 `### #61` 呈现
|
|
||||||
|
|
||||||
### 5.9 主题(亮 / 暗 / 跟随系统)
|
|
||||||
|
|
||||||
- 三态选项:亮色 / 暗色 / 跟随系统,**默认跟随系统**
|
|
||||||
- 机制:`Application.Current.RequestedThemeVariant` = `ThemeVariant.Light / Dark / Default`(Default = 继承系统偏好);Semi.Avalonia 两套配色经标准 ThemeVariant 机制生效,运行时切换**即时生效**(含支持平台上窗口标题栏装饰变体)
|
|
||||||
- 持久化:`AppConfig.Theme`(`"FollowSystem"` 默认 / `"Light"` / `"Dark"`)入 app.json,退出时落盘;启动时在主窗口创建前读取应用
|
|
||||||
- **自定义颜色硬规则**:界面中任何自定义 Brush/Color 资源必须以 `ThemeDictionaries` 成对定义 Light/Dark 两份并经 `DynamicResource` 引用,禁止裸用 `StaticResource` 引颜色,保证主题切换时界面完整变色
|
|
||||||
- 例外:标签颜色是用户数据(固定 `#RRGGBB`),两种主题下均直接显示原色,不做暗色变体
|
|
||||||
|
|
||||||
### 5.10 其他
|
|
||||||
|
|
||||||
- 主窗口尺寸/位置不持久化
|
|
||||||
- **窗口规则**:所有窗口直接使用标准 Avalonia Window(系统原生标题栏与装饰);禁止无边框窗口(borderless / chromeless),禁止自绘标题栏(关闭/最小化/最大化、拖拽区域等一律不做自定义实现)
|
|
||||||
|
|
||||||
## 6. 搜索语法
|
|
||||||
|
|
||||||
实现:Pidgin 库做 Lexer + Parser;语法文档并入根目录 `USAGE.md`(README 引用,见附录)。
|
|
||||||
|
|
||||||
### 6.1 文法(EBNF)
|
|
||||||
|
|
||||||
```
|
|
||||||
query := orExpr
|
|
||||||
orExpr := andExpr ( OR andExpr )*
|
|
||||||
andExpr := operand ( (AND)? operand )* ← 空格相邻 = 隐式 AND
|
|
||||||
operand := atom | '(' orExpr ')'
|
|
||||||
atom := word | phrase | qualifier
|
|
||||||
qualifier := key ':' (word | phrase)
|
|
||||||
key := tag | title | content | id | column
|
|
||||||
phrase := '"' 任意文本 '"' (内部支持转义:\" → 字面引号,\\ → 字面反斜杠)
|
|
||||||
```
|
|
||||||
|
|
||||||
### 6.2 语义
|
|
||||||
|
|
||||||
- `AND`(含隐式空格)优先于 `OR`,括号强制结合
|
|
||||||
- 仅大写 `AND`/`OR` 为运算符,小写即普通裸词;搜索字面量大写 AND/OR 需加引号(写入文档)
|
|
||||||
- Atom 语义:裸词/短语 → 标题**或**内容子串匹配;`tag:` 标签精确匹配;`column:` 列标题精确匹配(列名 UNIQUE,无歧义);`title:` / `content:` 字段子串;`id:` 精确匹配;全部不区分大小写;引号支持含空格值
|
|
||||||
- 短语内部转义:`\"` → 字面引号,`\\` → 字面反斜杠;搜索含空格/保留字符/字面 `AND` 等特殊标签名时,用(必要时转义的)引号值(写入文档)
|
|
||||||
- **严格校验**:非法表达式弹出错误对话框,不执行搜索。非法集合:括号不配对、运算符悬空(`bug AND`)、连续运算符(`a AND OR b`)、限定符无值(`tag:`)、短语引号未闭合、无效转义(`tag:"a\x"`)、未知限定符 key(合法 key 仅 tag / title / content / id / column)
|
|
||||||
- 错误对话框:模态、父窗口居中;文案 = 资源模板"查询表达式有误,详情:{0}"(i18n),{0} 处拼接解析器返回的**非 i18n 英文错误描述串**(对位置信息无要求)
|
|
||||||
- 空查询与纯空白查询 = 合法(显示全部)
|
|
||||||
- 无时间维度;解析器按可扩展限定符表设计(预留 `created:`、`NOT` 等扩展点)
|
|
||||||
- 搜索语法保留字**永不本地化**
|
|
||||||
|
|
||||||
### 6.3 交互
|
|
||||||
|
|
||||||
- 点搜索按钮才执行(校验也仅发生在点击时,无实时报错);空查询 = 全显;筛选后空列保留显示(维持看板结构感);搜索状态在会话内自然存续
|
|
||||||
- 表达式非法时:错误对话框关闭后,搜索框保留原文待修改,看板维持上一次筛选结果(错误不破坏现状)
|
|
||||||
|
|
||||||
## 7. 技术选型
|
|
||||||
|
|
||||||
版本已经 NuGet 实测调研锁定:
|
|
||||||
|
|
||||||
| 包 | 版本 | 备注 |
|
|
||||||
|---|---|---|
|
|
||||||
| Avalonia | **11.3.6 锁定** | 不允许升级 |
|
|
||||||
| Semi.Avalonia | 11.2.1.10 | 11.3.x 全系依赖 Avalonia ≥ 11.3.7 会强制升级,故降用 11.2 线最新;含亮/暗两套配色 |
|
|
||||||
| IconPacks.Avalonia.Lucide | 2.0.0 | 仅此子库,不装全库 IconPacks.Avalonia |
|
|
||||||
| Microsoft.Data.Sqlite | 9.0.20 | 与 net9.0 对齐;手写 SQL |
|
|
||||||
| Pidgin | 3.5.1 | 搜索 Lexer + Parser |
|
|
||||||
| MSTest | 4.4.1 | 遇问题降 3.11.1 |
|
|
||||||
| Newtonsoft.Json | 13.0.4 | app.json 序列化 |
|
|
||||||
| CommunityToolkit.Mvvm | 8.2.1 | 沿用现有 |
|
|
||||||
|
|
||||||
### 7.1 工程结构(单项目原则)
|
|
||||||
|
|
||||||
沿用现有 `YKanBan/` 项目**原地改造**(清理模板内容),重组为(同步更新 `YKanBan.slnx`):
|
|
||||||
|
|
||||||
- `YKanBan`:唯一应用项目——模型、schema/迁移、仓库层、搜索解析、导出、平台服务层、Avalonia UI(MVVM);持有全部 ResX 资源;全部包依赖进同一 csproj
|
|
||||||
- `YKanBan.Tests`:MSTest 测试库,引用主项目(连带引入 Avalonia 依赖);纪律规则:**不编写任何 UI 交互测试**(窗口、模态、点击流、数据绑定、主题切换、状态页渲染一律人工验证;不引入 headless UI 测试基础设施)
|
|
||||||
|
|
||||||
**测试范围**:解析器(成功文法全分支 + **错误检测全分支**(每个非法输入断言解析失败且错误消息非空)+ SQL 编译)、schema/DDL 约束实测、`user_version` 迁移、PRAGMA 生效、锁文件独占与释放、app.json 缺失/损坏降级、CRUD 与三条级联链、编辑确认事务原子性、**命令行参数解析**(无参/合法/非法三分支)、导出结构与本地化断言(直接设 `Resources.Culture` 断言 en / zh-Hans 真实输出)。一切测试在本地 Windows 运行。
|
|
||||||
|
|
||||||
### 7.2 平台与发布
|
|
||||||
|
|
||||||
- 锁文件等平台相关代码集中于跨平台接口的平台服务层(内部组织习惯,非强制架构)
|
|
||||||
- 发布目标:win-x64 / linux-x64 / osx-x64 / osx-arm64
|
|
||||||
- **单一 GitHub workflow**:仅 `workflow_dispatch` 手动触发;4 RID 矩阵,每个平台作业依次执行 **build → test → 测试通过后上传该 RID 的 artifact**(压缩包);测试失败该 RID 不出产物;不创建 GitHub Release
|
|
||||||
- 开发机访问不到 GitHub:**禁止任何依赖 push 触发的 CI**
|
|
||||||
- 开发期测试策略:一切验证在**本地 Windows** 进行(`dotnet build` + `dotnet test`);各里程碑的"单测/人工"验证均指本地 Windows 执行;Linux/macOS 行为验证**无限期推迟**至程序完工后(明确接受平台 bug 风险)
|
|
||||||
|
|
||||||
## 8. 国际化(I18N)
|
|
||||||
|
|
||||||
### 8.1 语言与资源
|
|
||||||
|
|
||||||
- 支持语言:**英文(默认)+ 简体中文(zh-Hans)**,仅此两种
|
|
||||||
- ResX 位于唯一主项目:`Resources.resx`(英文 neutral,missing key 回落英文)+ `Resources.zh-Hans.resx`;XAML 用 `{x:Static lang:Resources.Key}`
|
|
||||||
- 公共 Resources 类用跨平台 MSBuild 方案生成(`Generator=MSBuild:Compile` + `StronglyTypedFileName`(写入 obj/)+ `StronglyTypedNamespace` + `StronglyTypedClassName=Resources` + `PublicClass=true`),不用 VS 专属生成器
|
|
||||||
- M4 起硬性规则:**所有 UI 文本一律资源键**,英文文本也只写在 Resources.resx,禁止硬编码
|
|
||||||
|
|
||||||
### 8.2 资源访问与异常策略
|
|
||||||
|
|
||||||
- 需要本地化文本的代码(Markdown 导出生成器、初始化预置列名等)**直接读取 ResX 资源**(`Resources` 类全局可用);导出测试可直接设 `Resources.Culture` 断言 en / zh-Hans 真实输出
|
|
||||||
- 异常策略:异常消息**一律英文、永不本地化**——异常携带本地化文本是坏实践(抛出与显示时刻 culture 不一致、日志难检索);对需区分展示的场景(锁冲突、未初始化、目录不存在、schema 版本问题等)定义**类型化异常**,UI 按异常类型映射资源键显示本地化文案
|
|
||||||
|
|
||||||
### 8.3 语言切换与启动时序
|
|
||||||
|
|
||||||
- `AppConfig.Language`(`"en"` 默认)存 app.json;设置模态中切换(英文/简体中文)并提示"重启后生效"
|
|
||||||
- 启动时序:读 app.json → 在 `OnFrameworkInitializationCompleted` **创建主窗口之前**设置 `Resources.Culture = new CultureInfo(language)` → 同时按 `CultureInfo.TextInfo.IsRightToLeft` 检测并设置主窗口 `FlowDirection`
|
|
||||||
- **RTL 检测代码必须实现**——当前两语言均为 LTR 也不许省略,作为未来语言扩展的基础设施
|
|
||||||
- 与 app.json 退出写盘策略天然吻合:切换语言 → 退出时落盘 → 重启生效
|
|
||||||
|
|
||||||
## 9. 里程碑
|
|
||||||
|
|
||||||
| 阶段 | 内容 | 验证 |
|
|
||||||
|---|---|---|
|
|
||||||
| M0 工程重组 | 现有项目原地改造(清理模板内容)+ 新建 `YKanBan.Tests`、按版本表装依赖 | 本地 Windows build + test 通过 |
|
|
||||||
| M1 基础设施 | 工作区 schema(含 CHECK/UNIQUE 约束)+ user_version 迁移、PRAGMA、锁文件、app.json、命令行参数解析(无参/合法/非法)、初始化预置三列(列名直接读 ResX) | 单测 |
|
|
||||||
| M2 仓库层 | CRUD/移动/级联/标签指派、单连接生命周期 | 单测 |
|
|
||||||
| M3 搜索与导出 | Pidgin 解析器(严格校验,非法输入返回英文错误消息)、查询→SQL 编译、Markdown 导出(直接读 ResX,en / zh-Hans 输出均有测试) | 单测(成功与错误全分支) |
|
|
||||||
| M4 GUI 框架 | 主题/图标接入、主窗口布局(顶部区 + TabControl + **全窗口错误页体系**,含参数错误页)、设置/关于模态;**ResX 基础设施、语言设置项、RTL/FlowDirection 检测、全 UI 文本资源化(硬规则生效);亮/暗/跟随系统主题基础设施与设置项、ThemeDictionaries 颜色硬规则** | 人工 |
|
|
||||||
| M5 看板界面 | 看板 tab 全部交互与模态 | 人工 |
|
|
||||||
| M6 标签与搜索集成 | 标签 tab、搜索执行与空列保留、导出接线(含文件名/时间戳 i18n 模式) | 人工 |
|
|
||||||
| M7 发布与文档 | 单一 workflow(4 RID 矩阵 build→test→artifact)文件就绪(结构自查)、根目录 USAGE.md、README(引用 USAGE.md)、人工验收清单(含语言切换重启生效、导出语言跟随界面、主题三态切换三项) | workflow 结构自查通过;实际触发与产物验证视网络条件推迟 |
|
|
||||||
|
|
||||||
依赖链:M0 → M1 → M2 → M3 → M4 → M5 → M6 → M7
|
|
||||||
|
|
||||||
## 附录:用户文档(USAGE.md)
|
|
||||||
|
|
||||||
`README.md` 引用根目录 `USAGE.md`;`USAGE.md` 必载以下四项:
|
|
||||||
|
|
||||||
1. `.ykanban` 不应提交进 Git,建议加入全局 gitignore
|
|
||||||
2. 备份/迁移必须同时复制 `ykanban.db`、`ykanban.db-wal`、`ykanban.db-shm` 三个文件
|
|
||||||
3. 搜索语法全文(文法、语义、转义规则、保留字、严格校验与非法表达式清单、错误对话框行为,见 §6)
|
|
||||||
4. 命令行启动规则(`ykanban <path>`;无参数/非法参数 → 参数错误页,见 §4.1)
|
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>YKanBan</string>
|
<string>YKanBan</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>cn.blumia.code.yyc12345.ykanban</string>
|
<string>moe.yyc12345.ykanban</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>ykanban.icns</string>
|
<string>ykanban.icns</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
|
|||||||
Binary file not shown.
+14
-15
@@ -1,13 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Packs one published RID into a release archive.
|
# Packs one published RID into a release artifact.
|
||||||
#
|
#
|
||||||
# packaging/package.sh <rid> <publish-dir> <output-dir> <version>
|
# packaging/package.sh <rid> <publish-dir> <output-dir> <version>
|
||||||
#
|
#
|
||||||
# win-x64 -> YKanBan-<version>-win-x64.zip (folder YKanBan-<version>-win-x64/)
|
# win-x64 -> YKanBan-<version>-win-x64-setup.exe (Inno Setup installer)
|
||||||
# linux-x64 -> YKanBan-<version>-linux-x64.tar.gz (folder YKanBan-<version>-linux-x64/)
|
# linux-x64 -> YKanBan-<version>-linux-x64.tar.gz (folder YKanBan-<version>-linux-x64/)
|
||||||
# osx-* -> YKanBan-<version>-<rid>.tar.gz (YKanBan.app bundle, ad-hoc signed when possible)
|
# osx-* -> YKanBan-<version>-<rid>.dmg (YKanBan.app in a drag-to-Applications disk image, ad-hoc signed when possible)
|
||||||
#
|
#
|
||||||
# tar.gz keeps the executable bit, which a plain zip artifact upload would lose.
|
# tar.gz/dmg keep the executable bit, which a plain zip artifact upload would lose.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [ "$#" -ne 4 ]; then
|
if [ "$#" -ne 4 ]; then
|
||||||
@@ -27,16 +27,14 @@ trap 'rm -rf "$staging"' EXIT
|
|||||||
|
|
||||||
case "$rid" in
|
case "$rid" in
|
||||||
win-*)
|
win-*)
|
||||||
cp -R "$publish_dir" "$staging/$name"
|
# The Windows runners ship Inno Setup with ISCC on PATH. Git Bash rewrites
|
||||||
rm -f "$output_dir/$name.zip"
|
# arguments that start with "/" into POSIX paths, so disable the conversion
|
||||||
# 7-Zip ships on the Windows runners and writes '/' entry separators;
|
# and hand ISCC native Windows paths via cygpath.
|
||||||
# Windows PowerShell 5.1's Compress-Archive writes '\', which breaks
|
MSYS_NO_PATHCONV=1 iscc \
|
||||||
# extraction outside Windows.
|
"/DMyAppVersion=${version}" \
|
||||||
if ! command -v 7z > /dev/null 2>&1; then
|
"/DPublishDir=$(cygpath -w "${publish_dir}")" \
|
||||||
echo "7z not found" >&2
|
"/DOutputDir=$(cygpath -w "${output_dir}")" \
|
||||||
exit 1
|
"$(cygpath -w "${script_dir}/windows/ykanban.iss")"
|
||||||
fi
|
|
||||||
(cd "$staging" && 7z a -tzip -bso0 -bsp0 "$output_dir/$name.zip" "$name")
|
|
||||||
;;
|
;;
|
||||||
linux-*)
|
linux-*)
|
||||||
cp -R "$publish_dir" "$staging/$name"
|
cp -R "$publish_dir" "$staging/$name"
|
||||||
@@ -58,7 +56,8 @@ case "$rid" in
|
|||||||
echo "warning: ad-hoc signing of YKanBan.app failed; packing it unsigned" >&2
|
echo "warning: ad-hoc signing of YKanBan.app failed; packing it unsigned" >&2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
tar -C "$staging" -czf "$output_dir/$name.tar.gz" YKanBan.app
|
ln -s /Applications "$staging/Applications"
|
||||||
|
hdiutil create -volname "YKanBan" -srcfolder "$staging" -format UDZO -ov "$output_dir/$name.dmg"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "unsupported RID: $rid" >&2
|
echo "unsupported RID: $rid" >&2
|
||||||
|
|||||||
@@ -0,0 +1,69 @@
|
|||||||
|
; Inno Setup script for the Windows installer.
|
||||||
|
;
|
||||||
|
; ISCC.exe /DMyAppVersion=<version> /DPublishDir=<publish-dir> /DOutputDir=<dist-dir> packaging/windows/ykanban.iss
|
||||||
|
;
|
||||||
|
; The setup UI is English only: the single [Languages] entry uses the stock
|
||||||
|
; Default.isl, so no language dialog is shown. The install scope is chosen at
|
||||||
|
; startup (all users vs current user); HKA routes the context-menu registry
|
||||||
|
; entries to HKLM or HKCU accordingly, and {autopf} picks the matching
|
||||||
|
; program folder.
|
||||||
|
|
||||||
|
#ifndef MyAppVersion
|
||||||
|
#define MyAppVersion "0.0.0"
|
||||||
|
#endif
|
||||||
|
#ifndef PublishDir
|
||||||
|
#define PublishDir "publish/win-x64"
|
||||||
|
#endif
|
||||||
|
#ifndef OutputDir
|
||||||
|
#define OutputDir "dist"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define MyAppName "YKanBan"
|
||||||
|
#define MyAppExeName "YKanBan.exe"
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
AppId={{80A9F6AC-F6EB-48A8-A28C-EE7B0D6A6E81}
|
||||||
|
AppName={#MyAppName}
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
DefaultDirName={autopf}\{#MyAppName}
|
||||||
|
DisableProgramGroupPage=yes
|
||||||
|
PrivilegesRequired=admin
|
||||||
|
PrivilegesRequiredOverridesAllowed=dialog
|
||||||
|
OutputDir={#OutputDir}
|
||||||
|
OutputBaseFilename=YKanBan-{#MyAppVersion}-win-x64-setup
|
||||||
|
SetupIconFile=..\..\YKanBan\Assets\ykanban.ico
|
||||||
|
LicenseFile=..\..\LICENSE
|
||||||
|
UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||||
|
Compression=lzma2/max
|
||||||
|
SolidCompression=yes
|
||||||
|
WizardStyle=modern
|
||||||
|
ArchitecturesInstallIn64BitMode=x64compatible
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: "en"; MessagesFile: "compiler:Default.isl"
|
||||||
|
|
||||||
|
[CustomMessages]
|
||||||
|
ContextMenuTask=Add "Open in YKanBan" to the folder context menu
|
||||||
|
OpenInYKanBan=Open in YKanBan
|
||||||
|
|
||||||
|
[Tasks]
|
||||||
|
Name: "foldercontextmenu"; Description: "{cm:ContextMenuTask}"
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "{#PublishDir}\*"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion
|
||||||
|
|
||||||
|
[Registry]
|
||||||
|
; Folder context menu: right-clicking a folder opens it in YKanBan (%1).
|
||||||
|
Root: HKA; Subkey: "Software\Classes\Directory\shell\YKanBan"; ValueType: string; ValueName: ""; ValueData: "{cm:OpenInYKanBan}"; Flags: uninsdeletekey; Tasks: foldercontextmenu
|
||||||
|
Root: HKA; Subkey: "Software\Classes\Directory\shell\YKanBan"; ValueType: string; ValueName: "Icon"; ValueData: "{app}\{#MyAppExeName}"; Flags: uninsdeletekey; Tasks: foldercontextmenu
|
||||||
|
Root: HKA; Subkey: "Software\Classes\Directory\shell\YKanBan\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""; Flags: uninsdeletekey; Tasks: foldercontextmenu
|
||||||
|
; Folder background: right-clicking the empty area of a folder (%V).
|
||||||
|
Root: HKA; Subkey: "Software\Classes\Directory\Background\shell\YKanBan"; ValueType: string; ValueName: ""; ValueData: "{cm:OpenInYKanBan}"; Flags: uninsdeletekey; Tasks: foldercontextmenu
|
||||||
|
Root: HKA; Subkey: "Software\Classes\Directory\Background\shell\YKanBan"; ValueType: string; ValueName: "Icon"; ValueData: "{app}\{#MyAppExeName}"; Flags: uninsdeletekey; Tasks: foldercontextmenu
|
||||||
|
Root: HKA; Subkey: "Software\Classes\Directory\Background\shell\YKanBan\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%V"""; Flags: uninsdeletekey; Tasks: foldercontextmenu
|
||||||
|
|
||||||
|
[Icons]
|
||||||
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||||
|
|
||||||
|
[Run]
|
||||||
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent
|
||||||
Reference in new issue
Block a user