@tiddlywiki/mws 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -33
- package/dist/server.d.ts +15 -9
- package/dist/server.js +119 -61
- package/dist/server.js.map +1 -1
- package/editions/mws-docs/tiddlers/$__StoryList.tid +1 -3
- package/editions/mws-docs/tiddlers/2025-02-18 - User Management.md +56 -0
- package/editions/mws-docs/tiddlers/2025-02-18 - User Management.md.meta +5 -0
- package/editions/mws-docs/tiddlers/2025-04-03 - Phases of Development.md +64 -0
- package/editions/mws-docs/tiddlers/2025-04-03 - Phases of Development.md.meta +5 -0
- package/editions/mws-docs/tiddlers/2025-04-13 - Plugins.md +18 -0
- package/editions/mws-docs/tiddlers/2025-04-13 - Plugins.md.meta +5 -0
- package/editions/mws-docs/tiddlers/2025-05-04.md +13 -0
- package/editions/mws-docs/tiddlers/2025-05-04.md.meta +5 -0
- package/editions/mws-docs/tiddlers/2025-05-06.md +19 -0
- package/editions/mws-docs/tiddlers/2025-05-06.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Checklists and Features.md +15 -0
- package/editions/mws-docs/tiddlers/Checklists and Features.md.meta +5 -0
- package/editions/mws-docs/tiddlers/MWS Architecture.md +15 -0
- package/editions/mws-docs/tiddlers/MWS Architecture.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Notes.tid +5 -0
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Dark +173 -0
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Dark.meta +6 -0
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Light +172 -0
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Light.meta +6 -0
- package/package.json +9 -21
- package/plugins/client/tiddlers/readme.tid +0 -3
- package/react-user-mgmt/public/main.js +32 -32
- package/react-user-mgmt/public/main.js.map +4 -4
- package/react-user-mgmt/public/stats.json +1 -1
- package/scripts.mjs +34 -0
- package/.env-cmdrc +0 -5
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
list: [[Access Control]] [[Moduler Design]] [[MWS and SQLite]] [[Request Server]] Architecture HelloThere Installation Usage Reference
|
|
3
|
-
modified: 20250428174603436
|
|
1
|
+
list: HelloThere Installation Usage Reference
|
|
4
2
|
title: $:/StoryList
|
|
5
3
|
type: text/vnd.tiddlywiki
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Described here is a full blown role-based identity & access management system. However we are unlikely to need this level of sophistication immediately.
|
|
2
|
+
|
|
3
|
+
## Logical groupings and definitions
|
|
4
|
+
|
|
5
|
+
- A user is a logical grouping of logins.
|
|
6
|
+
- An organization ("content space") is a logical grouping of users and the content they interact with.
|
|
7
|
+
- The organization owner is a user who sets the privileges other users have in the organization.
|
|
8
|
+
- If enabled, every user is the owner of their own personal organization.
|
|
9
|
+
- If enabled, they may own extra organizations.
|
|
10
|
+
- The organization owner has all privileges in the organization except those they explicitly deny themself.
|
|
11
|
+
- They cannot deny themself the ability to change privileges in the organization.
|
|
12
|
+
- They may delegate to managers.
|
|
13
|
+
- Admins are users with site-wide privileges.
|
|
14
|
+
- The admin role is separate from the owner role. They are not site-wide owners.
|
|
15
|
+
- Admins can take various actions on extra orginizations, depending on site settings.
|
|
16
|
+
- Admins can manage users access to the site and take related actions.
|
|
17
|
+
- Depending on settings, admins cannot view content that does not belong to them, unless shared (the exact privacy details here aren't important, it's the technical features that I'm including this for).
|
|
18
|
+
- Site admins can define a public content space which everyone can view, and an additional content space which authenticated users can view. These act as implicit organizations with admins given permissions as managers.
|
|
19
|
+
|
|
20
|
+
Even though it sounds like I'm expecting this to be some kind of public document sharing platform or online collaboration, the setup actually has multiple use-cases within a single organization that are just as complicated.
|
|
21
|
+
|
|
22
|
+
### To recap the various roles in an organization
|
|
23
|
+
|
|
24
|
+
- **admin** - Granted site-wide permissions.
|
|
25
|
+
- **owner** - Granted organization level permissions.
|
|
26
|
+
- **manager** - Delegated permission from owners.
|
|
27
|
+
- **user** - Explicitly invited and added to the organization user list by owners or managers.
|
|
28
|
+
- **auth** - Visitor signed in and not in the user list.
|
|
29
|
+
- **anon** - Visitor not signed into the site.
|
|
30
|
+
|
|
31
|
+
### There are two permission levels within the wiki
|
|
32
|
+
|
|
33
|
+
- **writer** - can edit tiddlers, optionally filtered
|
|
34
|
+
- **reader** - can view tiddlers, optionally filtered
|
|
35
|
+
|
|
36
|
+
Owners can create permission profiles which define reader and writer filters, then assign them to users or groups (or to their access to a specific wiki), and when they update the permission profile the changes apply everywhere.
|
|
37
|
+
|
|
38
|
+
I mean look, at some point I'm just implementing an entire Identity Access Management service.
|
|
39
|
+
|
|
40
|
+
## JSON settings file
|
|
41
|
+
|
|
42
|
+
A short list of options in a JSON file alongside the database (or with the database settings) which determines some permanent settings that depend on the use case.
|
|
43
|
+
|
|
44
|
+
- Whether admins can change user email address or oauth identity and set user passwords (account takeover).
|
|
45
|
+
- Whether admins can view site content unrestricted (account privacy).
|
|
46
|
+
- Sets the max visibility owners and admins can set (since that shouldn't need to change).
|
|
47
|
+
- The default default visibility (before orgs change it).
|
|
48
|
+
|
|
49
|
+
### settings for content spaces (organizations)
|
|
50
|
+
|
|
51
|
+
- Whether new users get their own personal content space (personal organization).
|
|
52
|
+
- Whether non-admin users can be given additional content spaces (extra organizations).
|
|
53
|
+
- Whether non-admin users can create their own additional content spaces (extra organizations).
|
|
54
|
+
- Whether additional content spaces created by non-admin users can be removed from them by admins (this will depend on the use case).
|
|
55
|
+
|
|
56
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Welcome to the MultiWikiServer wiki!
|
|
2
|
+
|
|
3
|
+
## Phases of development
|
|
4
|
+
|
|
5
|
+
### Phase 1 is to get a fully working system that can be extended.
|
|
6
|
+
|
|
7
|
+
The features here should cover all of the core requirements.
|
|
8
|
+
|
|
9
|
+
- Database fully async and concurrent with transactions and row locking.
|
|
10
|
+
- Recipes and bags fully supported.
|
|
11
|
+
- Support for both server-wide (wiki-like) and per-user (doc-like) recipes.
|
|
12
|
+
- Shadow bags to hold each user's drafts and customizations for server-wide or shared recipes.
|
|
13
|
+
- Possible integration of various tiddler namespace behaviors, like private `User:{username}` tiddlers.
|
|
14
|
+
- Option *on the server* for users to propose edits to existing tiddlers, probably by moving a tiddler to a different bag.
|
|
15
|
+
- The concept of multiple users fully supported. Auth state has a userID property.
|
|
16
|
+
- Auth with username and password by default, but allowing custom integrations to be built that use third-party auth libraries or services. Several of us already have different ideas in mind, and we need to build all the required mechanisms in phase 1 in order to make sure we're properly supporting them, even if we don't actually support the third-party integrations themselves until phase 2.
|
|
17
|
+
- Multiple sessions editing the same wiki supported *by the server*, with revision mechanisms to prevent overwriting edits with an old version.
|
|
18
|
+
- Sharing read or write access with other users via invite links.
|
|
19
|
+
|
|
20
|
+
### Phase 2 is to add all the other important features
|
|
21
|
+
|
|
22
|
+
- [Full integration with popular auth solutions.](https://github.com/TiddlyWiki/MultiWikiServer/issues/1)
|
|
23
|
+
- [Full Identity & Access Management support.](https://github.com/TiddlyWiki/MultiWikiServer/wiki/User-Management-3)
|
|
24
|
+
- Collaborative editing sessions.
|
|
25
|
+
|
|
26
|
+
## How the server classes work together
|
|
27
|
+
|
|
28
|
+
This implements a server that abstracts the various HTTP protocols into a single request state object which it then hands out to the routes.
|
|
29
|
+
|
|
30
|
+
- **Streamer** abstracts away the difference between HTTP/1.1 and HTTP/2 to allow both to be handled transparently.
|
|
31
|
+
- Normalizes the request and response into a single class.
|
|
32
|
+
- Currently it doesn't support push streams, but we could change that.
|
|
33
|
+
- **Listeners** handle the server listener and send requests they recieve to the router.
|
|
34
|
+
- ListenerHTTP: Sets up and handles HTTP requests using the http module.
|
|
35
|
+
- ListenerHTTPS: Sets up and handles HTTPS requests using the http2 module (with http1.1 support).
|
|
36
|
+
- **Router**: The main server instance. Handles route matching and sets up a state object for each request. It also instantiates subsystems.
|
|
37
|
+
- **AuthState** (subsystem): Contains all authentication logic and is called at various points in the request process. It may throw to abort the request.
|
|
38
|
+
- **StateObject**: Contains everything routes have access to, including a database connection. Subsystems may create their own state classes which take the StateObject as a constructor argument.
|
|
39
|
+
|
|
40
|
+
## Thoughts on routing
|
|
41
|
+
|
|
42
|
+
Routing generally works well, but the current routes are all strictly path based. They mix various concerns into one module based on path similarities.
|
|
43
|
+
|
|
44
|
+
I think it would be a lot more streamlined to separate the concerns into different sections. Each of those would operate as their own submodule.
|
|
45
|
+
|
|
46
|
+
Why? Because this is how complicated permissions can get:
|
|
47
|
+
|
|
48
|
+
- **Auth** determines who the user is.
|
|
49
|
+
- Auth adapters that connect third-party auth services, with fields like profile pic, display name, email, etc.
|
|
50
|
+
- Auth strategies like session cookies or access tokens.
|
|
51
|
+
- Login and registration forms, email and phone interactions, etc.
|
|
52
|
+
- **Users** contains all the code for changing what the user is allowed to do.
|
|
53
|
+
- List of users, with tabs for pending, roles, etc.
|
|
54
|
+
- Handle user registrations and initial setup.
|
|
55
|
+
- Manage sharing and collaboration permissions: [Roles](https://github.com/Arlen22/TW5-MWS/wiki/Roles) (eventually)
|
|
56
|
+
- **Recipes** shows the user their available recipes and lets them create or modify.
|
|
57
|
+
- (Phase 1): Users create their own recipes and bags and specify read/write permissions for those recipes and bags.
|
|
58
|
+
- (Phase 2): Admins can define scoped bags which are added to recipes based on the user's role.
|
|
59
|
+
- **Wikis** contains all the code that runs when accessing the wiki itself.
|
|
60
|
+
- Tiddler saving and loading based on the recipe instructions.
|
|
61
|
+
- Uploads and other third-party integrations requiring server support.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
We need the MWS server to be as modular as possible. Obviously certain things, like the route implementations, are difficult to make modular. But various sections are much more self-contained, or interact with the rest of the codebase in a small, well-defined way, and these can be turned into pluggable services.
|
|
3
|
+
|
|
4
|
+
Server routes for various sections of the UI can be kept separate, so the recipe/bag manger, user manager, and actual wiki routes can be put in separate modules so that one of them can easily be rewritten without affecting the others.
|
|
5
|
+
|
|
6
|
+
All of them interact with the database via the prisma adapter, which can be modified to handle different databases. We should support mariadb, sqlite, and postgresql to cover the main ones. Making sure the prisma client covers all three is probably important. There may be small differences between the prisma client for different database types, although this will be reflected in the types, so we should be able to figure that out pretty easily.
|
|
7
|
+
|
|
8
|
+
The attachment store isn't something I've taken a close look at.
|
|
9
|
+
|
|
10
|
+
The tiddlywiki instance on the server might stay. At this point I don't think we actually need it for anything besides rendering the index wiki. That might be moved to the start command instead of being part of the mws runtime. But it's also used for various import and export commands which still need to be available on the cli. We could make loading optional, or unload it after commands have completed, or once mws-listen starts.
|
|
11
|
+
|
|
12
|
+
I don't think things are quite where they should be with the client either. Currently we're adding recipe tiddlers into the wiki page dynamically, which is expected, but there are like six tiddlers that are being rendered statically, which doesn't really make sense. It also doesn't make sense that we're dumping some plugins into the database but rendering core from tiddlywiki, since this results in a version mismatch.
|
|
13
|
+
|
|
14
|
+
At the same time, we really don't want to be rendering plugins every time. They do need to be cached somewhere so they can be loaded quickly. I wonder if it would work to cache them in the wiki folder, per tiddlywiki version, so if you upgrade it would just create a new folder. The boot tiddlers would be cached in the folder as well. If we do it right, we wouldn't even have to parse the file, just read it onto the wire. We'd probably need an index file to keep everything straight. We could add plugins/themes/languages support to the wiki folder as well, which would also get cached in the same way. We could make a way for caching to be disabled, perhaps by adding a field to `plugin.info`.
|
|
15
|
+
|
|
16
|
+
It would be useful if the plugin syntax could specify NPM modules. We already have the `+` and `++` syntax. I'm not sure exactly how it'd work, but the NPM package would need to determine it's own path, which is fairly simple, and then export that so it can be imported via the standard import mechanism. Obviously the package would need to be installed, and it should probably be imported into the run file and then added as an absolute path to the list of imports. Actually, I guess that's already possible, so I just need to add the list of imports part of it.
|
|
17
|
+
|
|
18
|
+
-- Arlen22
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
We need a way to add hooks at most significant points of the process. Maybe all code should just be hooks. Plugins need to be able to hook in and change what they need. I'm still trying to figure out how to put all the pieces together.
|
|
2
|
+
|
|
3
|
+
I want routes to call the register function, rather than being called by setup code. But then I have to figure out where to put the register functions.
|
|
4
|
+
|
|
5
|
+
Plugins need to hook into a whole bunch of points in the setup process, but they aren't bootstrapped until after the database is connected.
|
|
6
|
+
|
|
7
|
+
I think the biggest problem is that I was originally planning to architect it with everything in the config file (similar to how a build system or server works), but it seems everyone wants to use the UI and store config in the database as much as possible, so I'll probably end up with something a lot more like WordPress. Once I rearrange everything more logically using imports, it should be fairly obvious how to use plugins.
|
|
8
|
+
|
|
9
|
+
I probably need a startup state object, which basically has the site config and `rootRoute`. I also need to setup the CLI listen command [as outlined here](https://talk.tiddlywiki.org/t/mws-how-simple-can-we-make-the-cli-for-mws/12460).
|
|
10
|
+
|
|
11
|
+
I guess this is actually a significant rewrite, so once I get some of the initial pieces done, it should be more obvious.
|
|
12
|
+
|
|
13
|
+
-- Arlen22
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
There have been several different posts complaining about the long wait times when importing huge volumes of tiddlers. I took a look at the syncer and syncadaptor this evening, and realized that most of this is caused by the designed of the syncer itself, not the syncadaptor. The syncer only saves tiddlers one at a time. There's no batching. I'm not even sure if there is an option for batching.
|
|
2
|
+
|
|
3
|
+
It's probably going to be a good idea to redesign the syncer from the ground up. The syncer hooks directly into the change events on the wiki. From there it calculates which tiddlers need to be synced. I think it would be good to get as close to the wiki as possible, so hooking directly into the change events is probably a good idea.
|
|
4
|
+
|
|
5
|
+
For the purposes of MWS, the syncer is actually pretty basic, and most of the features are probably not used, however, the syncer presents a standard API surface between the UI internals and the sync adapter. If I can modify it to handle more bulk updates, that would help.
|
|
6
|
+
|
|
7
|
+
I think the syncer also needs to be updated to be more aware of the recipe. Being able to understand the recipe is kind of important in understanding how to deal with deletions efficiently. It needs to be aware of read-only tiddlers.
|
|
8
|
+
|
|
9
|
+
Speaking of recipes, I keep bouncing this idea around in my mind of recipes which are multi-layered. Each level of the recipe could be opened by admins in order to easily make changes to the bag without creating a separate recipe. You can't just edit an individual bag because you need the bags below it in order to make sense out of it.
|
|
10
|
+
|
|
11
|
+
There also isn't a good way to move tiddlers between levels. Admins will need to be given some extra tools to do this with.
|
|
12
|
+
|
|
13
|
+
I'm not good at wikitext, but I can provide the endpoints for all of these operations as well as the client-side adapters and actions to use them.
|
|
14
|
+
|
|
15
|
+
I also don't know why we aren't using the wiki mount point for the API, and putting the react UI under admin, since then it would free up the entire path space to use for a tree path structure.
|
|
16
|
+
|
|
17
|
+
I'm working on simplifying the internal code structure yet again, still focusing on getting everything up to speed with my latest ideas.
|
|
18
|
+
|
|
19
|
+
-- Arlen22
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## ACL
|
|
2
|
+
|
|
3
|
+
- Verify that anonymous users only have the access defined by allowAnon.
|
|
4
|
+
- No access to owned bags.
|
|
5
|
+
- No access to bags with ACL defined.
|
|
6
|
+
- Verify that logged in users only have the access expected
|
|
7
|
+
- No access to bags owned by other users.
|
|
8
|
+
- Unless they are in the ACL for the bag.
|
|
9
|
+
- No more access than what is granted by the ACL.
|
|
10
|
+
- Verify that all admin permissions are based on the admin role, not the first user.
|
|
11
|
+
- Verify that admin's cannot remove the admin role from themselves.
|
|
12
|
+
|
|
13
|
+
## Recipes
|
|
14
|
+
|
|
15
|
+
-
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
### Features
|
|
2
|
+
|
|
3
|
+
* Bag & Recipe system for storing tiddlers.
|
|
4
|
+
* User and Role management with ACL.
|
|
5
|
+
* Attachment system for storing binary tiddlers on the file system.
|
|
6
|
+
* Various import and export commands (currently still in development).
|
|
7
|
+
|
|
8
|
+
### Planned (hopefully) for the future
|
|
9
|
+
|
|
10
|
+
* AuthJS or a similar integration that supports third-party OAuth (you can already write your own).
|
|
11
|
+
* Compiling filters to SQL to optimize memory on both the client and server.
|
|
12
|
+
* Support for other database and storage systems. Most likely MariaDB and Postgres.
|
|
13
|
+
* Additional recipe strategies with features like prefixed bags and namespaces.
|
|
14
|
+
* Server rendering of pages, for a more wikipedia-like experience.
|
|
15
|
+
* Some kind of plugin system which provides a level of server-side access into the request path
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/* generated by ChatGPT o3 */
|
|
2
|
+
alert-background: #ffb74d /* warning.light */
|
|
3
|
+
alert-border: #ff9800 /* warning.main */
|
|
4
|
+
alert-highlight: #c66900 /* warning.dark */
|
|
5
|
+
alert-muted-foreground: rgba(255,255,255,0.70)
|
|
6
|
+
|
|
7
|
+
background: #121212 /* background.default / paper */
|
|
8
|
+
page-background: #121212
|
|
9
|
+
|
|
10
|
+
foreground: rgba(255,255,255,0.87) /* text.primary */
|
|
11
|
+
muted-foreground: rgba(255,255,255,0.70) /* text.secondary */
|
|
12
|
+
very-muted-foreground: rgba(255,255,255,0.50)
|
|
13
|
+
|
|
14
|
+
primary: #90caf9 /* primary.main */
|
|
15
|
+
|
|
16
|
+
blockquote-bar: <<colour muted-foreground>>
|
|
17
|
+
button-background: #90caf9
|
|
18
|
+
button-foreground: #000000
|
|
19
|
+
button-border: #42a5f5
|
|
20
|
+
|
|
21
|
+
code-background: #1e1e1e
|
|
22
|
+
code-border: #424242
|
|
23
|
+
code-foreground: #ff8a80 /* error.light */
|
|
24
|
+
|
|
25
|
+
diff-delete-background: #b71c1c
|
|
26
|
+
diff-delete-foreground: #ffffff
|
|
27
|
+
diff-equal-background: #424242
|
|
28
|
+
diff-insert-background: #2e7d32
|
|
29
|
+
diff-insert-foreground: #ffffff
|
|
30
|
+
diff-invisible-foreground: <<colour very-muted-foreground>>
|
|
31
|
+
|
|
32
|
+
dirty-indicator: #ff1744
|
|
33
|
+
download-background: #66bb6a
|
|
34
|
+
download-foreground: #000000
|
|
35
|
+
|
|
36
|
+
dropdown-background: <<colour background>>
|
|
37
|
+
dropdown-border: rgba(255,255,255,0.12)
|
|
38
|
+
dropdown-tab-background-selected: #1e1e1e
|
|
39
|
+
dropdown-tab-background: #333333
|
|
40
|
+
dropzone-background: rgba(76,175,80,0.70)
|
|
41
|
+
|
|
42
|
+
external-link-foreground: #90caf9
|
|
43
|
+
external-link-foreground-visited: #ce93d8
|
|
44
|
+
|
|
45
|
+
footnote-target-background: #1565c0
|
|
46
|
+
|
|
47
|
+
highlight-background: #ffff00
|
|
48
|
+
highlight-foreground: #000000
|
|
49
|
+
|
|
50
|
+
message-background: #0277bd
|
|
51
|
+
message-border: #0288d1
|
|
52
|
+
message-foreground: #ffffff
|
|
53
|
+
|
|
54
|
+
modal-backdrop: rgba(0,0,0,0.5)
|
|
55
|
+
modal-background: #1e1e1e
|
|
56
|
+
modal-border: #666666
|
|
57
|
+
modal-footer-background: #242424
|
|
58
|
+
modal-footer-border: #333333
|
|
59
|
+
modal-header-border: #333333
|
|
60
|
+
|
|
61
|
+
network-activity-foreground: #66bb6a
|
|
62
|
+
|
|
63
|
+
notification-background: #424242
|
|
64
|
+
notification-border: rgba(255,255,255,0.12)
|
|
65
|
+
|
|
66
|
+
pre-background: #2d2d2d
|
|
67
|
+
pre-border: #424242
|
|
68
|
+
|
|
69
|
+
selection-background: #004ba0
|
|
70
|
+
selection-foreground: #ffffff
|
|
71
|
+
|
|
72
|
+
select-tag-background: #90caf9
|
|
73
|
+
select-tag-foreground: #000000
|
|
74
|
+
|
|
75
|
+
sidebar-button-foreground: <<colour foreground>>
|
|
76
|
+
sidebar-controls-foreground-hover: #ffffff
|
|
77
|
+
sidebar-controls-foreground: #aaaaaa
|
|
78
|
+
sidebar-foreground-shadow: rgba(0,0,0,0.80)
|
|
79
|
+
sidebar-foreground: #8c8c8c
|
|
80
|
+
sidebar-muted-foreground-hover: #dddddd
|
|
81
|
+
sidebar-muted-foreground: #9e9e9e
|
|
82
|
+
sidebar-tab-background-selected: #1e1e1e
|
|
83
|
+
sidebar-tab-background: #333333
|
|
84
|
+
sidebar-tab-border-selected: #90caf9
|
|
85
|
+
sidebar-tab-border: rgba(255,255,255,0.12)
|
|
86
|
+
sidebar-tab-divider: rgba(255,255,255,0.12)
|
|
87
|
+
sidebar-tab-foreground-selected: <<colour foreground>>
|
|
88
|
+
sidebar-tab-foreground: <<colour tab-foreground>>
|
|
89
|
+
sidebar-tiddler-link-foreground-hover: #90caf9
|
|
90
|
+
sidebar-tiddler-link-foreground: #bbbbbb
|
|
91
|
+
|
|
92
|
+
site-title-foreground: #bbdefb
|
|
93
|
+
|
|
94
|
+
stability-stable: #66bb6a
|
|
95
|
+
stability-experimental: #ffb74d
|
|
96
|
+
stability-deprecated: #ff5252
|
|
97
|
+
stability-legacy: #82b1ff
|
|
98
|
+
|
|
99
|
+
static-alert-foreground: #bbbbbb
|
|
100
|
+
|
|
101
|
+
tab-background-selected: #1e1e1e
|
|
102
|
+
tab-background: #333333
|
|
103
|
+
tab-border-selected: #333333
|
|
104
|
+
tab-border: rgba(255,255,255,0.12)
|
|
105
|
+
tab-divider: rgba(255,255,255,0.12)
|
|
106
|
+
tab-foreground-selected: <<colour foreground>>
|
|
107
|
+
tab-foreground: #bbbbbb
|
|
108
|
+
|
|
109
|
+
table-border: #424242
|
|
110
|
+
table-footer-background: #2d2d2d
|
|
111
|
+
table-header-background: #1e1e1e
|
|
112
|
+
|
|
113
|
+
tag-background: #ff9800
|
|
114
|
+
tag-foreground: #000000
|
|
115
|
+
|
|
116
|
+
testcase-accent-level-1: #003c8f
|
|
117
|
+
testcase-accent-level-2: #8d6e63
|
|
118
|
+
testcase-accent-level-3: #2e7d32
|
|
119
|
+
|
|
120
|
+
tiddler-background: <<colour background>>
|
|
121
|
+
tiddler-border: #333
|
|
122
|
+
|
|
123
|
+
tiddler-controls-foreground-hover: #bbbbbb
|
|
124
|
+
tiddler-controls-foreground-selected: #ffffff
|
|
125
|
+
tiddler-controls-foreground: #888888
|
|
126
|
+
|
|
127
|
+
tiddler-editor-background: #1e1e1e
|
|
128
|
+
tiddler-editor-border-image: <<colour background>>
|
|
129
|
+
tiddler-editor-border: #424242
|
|
130
|
+
tiddler-editor-fields-even: #1b5e20
|
|
131
|
+
tiddler-editor-fields-odd: #263238
|
|
132
|
+
|
|
133
|
+
tiddler-info-background: #1e1e1e
|
|
134
|
+
tiddler-info-border: #424242
|
|
135
|
+
tiddler-info-tab-background: #1e1e1e
|
|
136
|
+
|
|
137
|
+
tiddler-link-background: <<colour background>>
|
|
138
|
+
tiddler-link-foreground: <<colour primary>>
|
|
139
|
+
tiddler-subtitle-foreground: rgba(255,255,255,0.50)
|
|
140
|
+
tiddler-title-foreground: #bbdefb
|
|
141
|
+
|
|
142
|
+
toolbar-new-button: #90caf9
|
|
143
|
+
toolbar-options-button: #90caf9
|
|
144
|
+
toolbar-save-button: #66bb6a
|
|
145
|
+
toolbar-info-button: #64b5f6
|
|
146
|
+
toolbar-edit-button: #ffb74d
|
|
147
|
+
toolbar-close-button: #ff1744
|
|
148
|
+
toolbar-delete-button: #ff1744
|
|
149
|
+
toolbar-cancel-button: #757575
|
|
150
|
+
toolbar-done-button: #66bb6a
|
|
151
|
+
|
|
152
|
+
untagged-background: #757575
|
|
153
|
+
|
|
154
|
+
wikilist-background: #2d2d2d
|
|
155
|
+
wikilist-item: #1e1e1e
|
|
156
|
+
wikilist-info: <<colour foreground>>
|
|
157
|
+
wikilist-title: #bbbbbb
|
|
158
|
+
wikilist-title-svg: <<colour wikilist-title>>
|
|
159
|
+
wikilist-url: #9e9e9e
|
|
160
|
+
|
|
161
|
+
wikilist-button-open: #66bb6a
|
|
162
|
+
wikilist-button-open-hover: #388e3c
|
|
163
|
+
wikilist-button-reveal: #90caf9
|
|
164
|
+
wikilist-button-reveal-hover: #1565c0
|
|
165
|
+
wikilist-button-remove: #ff5252
|
|
166
|
+
wikilist-button-remove-hover: #d32f2f
|
|
167
|
+
|
|
168
|
+
wikilist-toolbar-background: #424242
|
|
169
|
+
wikilist-toolbar-foreground: #bbbbbb
|
|
170
|
+
wikilist-droplink-dragover: rgba(255,192,192,0.5)
|
|
171
|
+
|
|
172
|
+
wikilist-button-background: #8c8c8c
|
|
173
|
+
wikilist-button-foreground: #000000
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* generated by ChatGPT o3 */
|
|
2
|
+
alert-background: #fff8e1 /* warning.light (amber 100) */
|
|
3
|
+
alert-border: #ff9800 /* warning.main */
|
|
4
|
+
alert-highlight: #c66900 /* warning.dark */
|
|
5
|
+
alert-muted-foreground: rgba(0,0,0,0.60)
|
|
6
|
+
|
|
7
|
+
background: #ffffff /* background.paper */
|
|
8
|
+
page-background: #fafafa /* background.default */
|
|
9
|
+
|
|
10
|
+
foreground: rgba(0,0,0,0.87) /* text.primary */
|
|
11
|
+
muted-foreground: rgba(0,0,0,0.60) /* text.secondary*/
|
|
12
|
+
very-muted-foreground: rgba(0,0,0,0.38) /* text.disabled*/
|
|
13
|
+
|
|
14
|
+
primary: #1976d2 /* primary.main */
|
|
15
|
+
|
|
16
|
+
blockquote-bar: <<colour muted-foreground>>
|
|
17
|
+
button-background: #1976d2
|
|
18
|
+
button-foreground: #ffffff
|
|
19
|
+
button-border: #1565c0 /* primary.dark */
|
|
20
|
+
|
|
21
|
+
code-background: #f5f5f5
|
|
22
|
+
code-border: #e0e0e0
|
|
23
|
+
code-foreground: #d32f2f /* error.main */
|
|
24
|
+
|
|
25
|
+
diff-delete-background: #ffcdd2 /* error.light */
|
|
26
|
+
diff-delete-foreground: <<colour foreground>>
|
|
27
|
+
diff-equal-background: #e0e0e0
|
|
28
|
+
diff-insert-background: #c8e6c9 /* success.light */
|
|
29
|
+
diff-invisible-foreground: <<colour muted-foreground>>
|
|
30
|
+
|
|
31
|
+
dirty-indicator: #d32f2f
|
|
32
|
+
download-background: #4caf50 /* success.main */
|
|
33
|
+
download-foreground: <<colour background>>
|
|
34
|
+
|
|
35
|
+
dropdown-background: <<colour background>>
|
|
36
|
+
dropdown-border: #e0e0e0 /* divider */
|
|
37
|
+
dropdown-tab-background-selected: #ffffff
|
|
38
|
+
dropdown-tab-background: #eeeeee
|
|
39
|
+
dropzone-background: rgba(76,175,80,0.70)
|
|
40
|
+
|
|
41
|
+
external-link-foreground: #1976d2
|
|
42
|
+
external-link-foreground-visited: #551a8b
|
|
43
|
+
|
|
44
|
+
footnote-target-background: #bbdefb /* info.light */
|
|
45
|
+
|
|
46
|
+
highlight-background: #ffff00
|
|
47
|
+
highlight-foreground: #000000
|
|
48
|
+
|
|
49
|
+
message-background: #e3f2fd /* info.light */
|
|
50
|
+
message-border: #90caf9 /* info.main */
|
|
51
|
+
message-foreground: #0277bd /* info.dark */
|
|
52
|
+
|
|
53
|
+
modal-backdrop: rgba(0,0,0,0.5)
|
|
54
|
+
modal-background: <<colour background>>
|
|
55
|
+
modal-border: #9e9e9e
|
|
56
|
+
modal-footer-background: #f5f5f5
|
|
57
|
+
modal-footer-border: #e0e0e0
|
|
58
|
+
modal-header-border: #e0e0e0
|
|
59
|
+
|
|
60
|
+
network-activity-foreground: #2e7d32 /* success.dark */
|
|
61
|
+
|
|
62
|
+
notification-background: #fffde7 /* warning.50 */
|
|
63
|
+
notification-border: #e0e0e0
|
|
64
|
+
|
|
65
|
+
pre-background: #f5f5f5
|
|
66
|
+
pre-border: #cccccc
|
|
67
|
+
|
|
68
|
+
selection-background: #bbdefb /* primary.100 */
|
|
69
|
+
selection-foreground: #000000
|
|
70
|
+
|
|
71
|
+
select-tag-background: #1976d2
|
|
72
|
+
select-tag-foreground: #ffffff
|
|
73
|
+
|
|
74
|
+
sidebar-button-foreground: <<colour foreground>>
|
|
75
|
+
sidebar-controls-foreground-hover: #000000
|
|
76
|
+
sidebar-controls-foreground: #aaaaaa
|
|
77
|
+
sidebar-foreground-shadow: rgba(255,255,255,0.80)
|
|
78
|
+
sidebar-foreground: #acacac
|
|
79
|
+
sidebar-muted-foreground-hover: #444444
|
|
80
|
+
sidebar-muted-foreground: #c0c0c0
|
|
81
|
+
sidebar-tab-background-selected: #e3f2fd
|
|
82
|
+
sidebar-tab-background: #d6d6d6
|
|
83
|
+
sidebar-tab-border-selected: #90caf9
|
|
84
|
+
sidebar-tab-border: #cccccc
|
|
85
|
+
sidebar-tab-divider: #e4e4e4
|
|
86
|
+
sidebar-tab-foreground-selected: <<colour foreground>>
|
|
87
|
+
sidebar-tab-foreground: <<colour tab-foreground>>
|
|
88
|
+
sidebar-tiddler-link-foreground-hover: #1976d2
|
|
89
|
+
sidebar-tiddler-link-foreground: #666666
|
|
90
|
+
|
|
91
|
+
site-title-foreground: #0d47a1 /* primary.deep‑dark */
|
|
92
|
+
|
|
93
|
+
stability-stable: #2e7d32
|
|
94
|
+
stability-experimental: #ed6c02
|
|
95
|
+
stability-deprecated: #d32f2f
|
|
96
|
+
stability-legacy: #303f9f
|
|
97
|
+
|
|
98
|
+
static-alert-foreground: #aaaaaa
|
|
99
|
+
|
|
100
|
+
tab-background-selected: #ffffff
|
|
101
|
+
tab-background: #d8d8d8
|
|
102
|
+
tab-border-selected: #d8d8d8
|
|
103
|
+
tab-border: #cccccc
|
|
104
|
+
tab-divider: #d8d8d8
|
|
105
|
+
tab-foreground-selected: <<colour foreground>>
|
|
106
|
+
tab-foreground: #666666
|
|
107
|
+
|
|
108
|
+
table-border: #dddddd
|
|
109
|
+
table-footer-background: #eeeeee
|
|
110
|
+
table-header-background: #f0f0f0
|
|
111
|
+
|
|
112
|
+
tag-background: #ff9800
|
|
113
|
+
tag-foreground: #ffffff
|
|
114
|
+
|
|
115
|
+
testcase-accent-level-1: #c1eaff
|
|
116
|
+
testcase-accent-level-2: #e3b740
|
|
117
|
+
testcase-accent-level-3: #5fd564
|
|
118
|
+
|
|
119
|
+
tiddler-background: <<colour background>>
|
|
120
|
+
tiddler-border: <<colour background>>
|
|
121
|
+
|
|
122
|
+
tiddler-controls-foreground-hover: #888888
|
|
123
|
+
tiddler-controls-foreground-selected: #444444
|
|
124
|
+
tiddler-controls-foreground: #cccccc
|
|
125
|
+
|
|
126
|
+
tiddler-editor-background: #f8f8f8
|
|
127
|
+
tiddler-editor-border-image: <<colour background>>
|
|
128
|
+
tiddler-editor-border: #cccccc
|
|
129
|
+
tiddler-editor-fields-even: #e8f5e9
|
|
130
|
+
tiddler-editor-fields-odd: #f1f8e9
|
|
131
|
+
|
|
132
|
+
tiddler-info-background: #f8f8f8
|
|
133
|
+
tiddler-info-border: #dddddd
|
|
134
|
+
tiddler-info-tab-background: #f8f8f8
|
|
135
|
+
|
|
136
|
+
tiddler-link-background: <<colour background>>
|
|
137
|
+
tiddler-link-foreground: <<colour primary>>
|
|
138
|
+
tiddler-subtitle-foreground: rgba(0,0,0,0.38)
|
|
139
|
+
tiddler-title-foreground: #0d47a1
|
|
140
|
+
|
|
141
|
+
toolbar-new-button: #1976d2
|
|
142
|
+
toolbar-options-button: #1976d2
|
|
143
|
+
toolbar-save-button: #2e7d32
|
|
144
|
+
toolbar-info-button: #0288d1
|
|
145
|
+
toolbar-edit-button: #ed6c02
|
|
146
|
+
toolbar-close-button: #d32f2f
|
|
147
|
+
toolbar-delete-button: #d32f2f
|
|
148
|
+
toolbar-cancel-button: #9e9e9e
|
|
149
|
+
toolbar-done-button: #2e7d32
|
|
150
|
+
|
|
151
|
+
untagged-background: #9e9e9e
|
|
152
|
+
|
|
153
|
+
wikilist-background: #e5e5e5
|
|
154
|
+
wikilist-item: #ffffff
|
|
155
|
+
wikilist-info: <<colour foreground>>
|
|
156
|
+
wikilist-title: #666666
|
|
157
|
+
wikilist-title-svg: <<colour wikilist-title>>
|
|
158
|
+
wikilist-url: #757575
|
|
159
|
+
|
|
160
|
+
wikilist-button-open: #4caf50
|
|
161
|
+
wikilist-button-open-hover: #388e3c
|
|
162
|
+
wikilist-button-reveal: #1976d2
|
|
163
|
+
wikilist-button-reveal-hover: #0d47a1
|
|
164
|
+
wikilist-button-remove: #d32f2f
|
|
165
|
+
wikilist-button-remove-hover: #b71c1c
|
|
166
|
+
|
|
167
|
+
wikilist-toolbar-background: #d3d3d3
|
|
168
|
+
wikilist-toolbar-foreground: #888888
|
|
169
|
+
wikilist-droplink-dragover: rgba(255,192,192,0.5)
|
|
170
|
+
|
|
171
|
+
wikilist-button-background: #acacac
|
|
172
|
+
wikilist-button-foreground: #000000
|