Commit Graph

20 Commits

Author SHA1 Message Date
Tienson Qin
2599b45768 Merge branch 'feat/db' into refactor/tag-as-type 2024-12-19 15:09:02 +08:00
Charlie
630c077c02 Enhance(UX): left sidebar (#11649)
* chore(ui): add sidebar related components

* chore(shui): add sidebar core

* enhance(ui): WIP polish left sidebar

* enhance(ui): polish opacity value

* enhance(ui): remove unnecessary css

* enhance(ui): simplify the left sidebar related css

* enhance(ui): polish left sidebar navigations

* enhance(ui): polish navigations items

* enhance(ui): polish graphs picker from the left sidebar

* enhance(ui): polish graphs selector

* enhance(ui): graphs dropdown content

* enhance(ux): create new page for the graphs selector section

* enhance(ui): remote icon for the graphs selector

* enhance(ui): polish sidebar navigations filter

* fix(ui): background color for the left sidebar

* enhance(ui): refactor names related with the left sidebar

* enhance(ux): WIP configurable navigations from the left sidebar

* enhance(ux): configurable navigations popup

* enhance(ux): persist user navigations from the left sidebar

* fix(ui): bad graph selector type icon

* fix: lint

* fix: lint

* enhance(ui): polish details for the left sidebar

* chore: remove shadcn sidebar component

* chore: remove shadcn sidebar related component

* fix(ui): text overflow for the page name item
2024-12-19 15:00:52 +08:00
Gabriel Horner
46d7e80057 fix default lang in catch 2024-01-18 23:39:37 +08:00
Gabriel Horner
283d084de2 Simplify fn translations in light of #10868
- Reverted overly complex fn translations from #10810
- Updated guidelines so it's clear that fn translations need to remain
simple. They shouldn't be so complex that they fail for edge cases
- Updated catch so we are aware when translations fail
2024-01-18 23:39:37 +08:00
Andelf
e9361f66f4 enhance(i18n): fallback to en if i18n dict error 2024-01-18 17:07:13 +08:00
Gabriel Horner
514b5faf6e Refactor and simplify dicts
- frontend.dicts encapsulates dicts behavior for all other namespaces
- Each dict ns only has one var which prepares us
- No longer need shortcut.dicts
- Fix remaining lints that were broken
- Also bring back frontend.dicts
- Update guide
- Add a false binding to :editor/toggle-undo-redo-mode which throws a
  needless warning
2023-05-18 18:13:50 -04:00
Avelino
1d14f6a98f centralize translation dictionary
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Avelino
a2d1f65c2f shortcut/i18n: isolate package languages
Signed-off-by: Avelino <avelinorun@gmail.com>
2023-05-18 18:05:22 -04:00
Gabriel Horner
b1d210d26b Merge configs and create global config file if not present
- Cleanup repo and global config with system components
- test merging
- fix edge cases
2022-09-08 12:34:27 +08:00
Gabriel Horner
391d3e48f3 Simplify i18n translate
No need for translate fn to be stateful. No reason to check preferred
language on _every_ translation
2022-03-28 16:22:57 -04:00
Gabriel Horner
f4839da1e1 Make dictionary namespaces bb compatible
Now that translations are just data no excuse for them not being bb
compatible. Also gets rid of needless sexp parsing
2022-03-28 12:33:28 -04:00
Gabriel Horner
5635469d7a Split out command and category descs
Move them to a more appropriate ns that is just dictionary focused.
This _majorly_ slims down dependencies for the main translation ns
Also:
- add tests
- make medley requires consistent
- alter spec to reflect how command data is actually being used in
  command palette component
- add basic translation tests
2022-03-28 11:05:42 -04:00
Tienson Qin
6151ca9c09 fix: CI tests 2022-02-08 22:54:18 +08:00
Tienson Qin
982eba9396 refactor: remove i18n tongue context 2022-02-08 17:31:32 +08:00
Gabriel Horner
b3ee61b1ca Remove more unused fns 2022-01-27 14:11:59 -05:00
Tienson Qin
643c57f9a9 enhance(ux): right-click to display page menu options 2021-10-11 16:18:50 +08:00
Tienson Qin
75c369e24e fix: typo 2021-05-19 20:28:21 +08:00
Tienson Qin
43a4a3a06c fix: typo 2021-05-19 20:28:21 +08:00
Weihua Lu
5e081ed91c fix: separate dict to solve cyclic dependency 2021-05-14 03:19:22 +08:00
Tienson Qin
2d1fa33204 refactor: remove web 2020-10-27 23:19:40 +08:00