feat: Phase 1 — extract the client (web SPA + desktop) to dtoro/oikos-web
Problem: the hexagonal refactor churns the backend tree for nine more phases; the UI delivery stack (web/ SPA, cmd/desktop Wails wrapper, compose/web image) must move to its own repo first so doc/layout rewrites land once on a backend-only tree. Change: - New repo git.hubris.network/dtoro/oikos-web (v0.33.0): web/, desktop/ (updateURL repointed to oikos-web releases), compose/, own CI (web + desktop jobs), own deploy script (CI-green gate, TOCTOU guard, version-tagged images, prune-to-3), own webhook receiver on :9798 + launchd unit, own compose project publishing the same 8091:80. - Cutover executed on mac-mini in order: oikos stack's web service stopped+removed, oikos-web project brought up on 8091; outer Caddy untouched (targets the published port) — serving + Authentik flow + /wails 404 quirk verified post-cutover. - Stripped from oikos: web/, cmd/desktop/, compose/web/, desktop CI workflow, ci.yml web job, Makefile ui/desktop/desktop-package/install targets, the compose web service, oikos-web from deploy.sh's fallback prune list; wails + go-keyring dropped from go.mod, vendor synced. - README / CONTRIBUTING / AGENTS.md / .agents dev+operations docs now point at the new repo; mbse + mascot design docs carry a path note. Risk: production SPA serving depends on the new pipeline now; rollback is versioned-image re-up of the old web service from a pre-split checkout (port 8091). Desktop builds installed before the split still check dtoro/oikos releases — one manual reinstall, noted in the oikos-web release notes. Verification: go vet, make test (race), make generate-check, golangci (no new findings; baseline down 400→365); post-cutover curls — localhost:8091 200, /wails/runtime.js 404, outer Caddy 302 Authentik.
This commit is contained in:
6
web/node_modules/clsx/clsx.d.mts
generated
vendored
Normal file
6
web/node_modules/clsx/clsx.d.mts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
|
||||
export type ClassDictionary = Record<string, any>;
|
||||
export type ClassArray = ClassValue[];
|
||||
|
||||
export function clsx(...inputs: ClassValue[]): string;
|
||||
export default clsx;
|
||||
10
web/node_modules/clsx/clsx.d.ts
generated
vendored
Normal file
10
web/node_modules/clsx/clsx.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
declare namespace clsx {
|
||||
type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
|
||||
type ClassDictionary = Record<string, any>;
|
||||
type ClassArray = ClassValue[];
|
||||
function clsx(...inputs: ClassValue[]): string;
|
||||
}
|
||||
|
||||
declare function clsx(...inputs: clsx.ClassValue[]): string;
|
||||
|
||||
export = clsx;
|
||||
1
web/node_modules/clsx/dist/clsx.js
generated
vendored
Normal file
1
web/node_modules/clsx/dist/clsx.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
function r(e){var o,t,f="";if("string"==typeof e||"number"==typeof e)f+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=r(e[o]))&&(f&&(f+=" "),f+=t)}else for(t in e)e[t]&&(f&&(f+=" "),f+=t);return f}function e(){for(var e,o,t=0,f="",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=r(e))&&(f&&(f+=" "),f+=o);return f}module.exports=e,module.exports.clsx=e;
|
||||
1
web/node_modules/clsx/dist/clsx.min.js
generated
vendored
Normal file
1
web/node_modules/clsx/dist/clsx.min.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.clsx=n()}(this,(function(){function e(n){var t,f,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n)){var r=n.length;for(t=0;t<r;t++)n[t]&&(f=e(n[t]))&&(o&&(o+=" "),o+=f)}else for(f in n)n[f]&&(o&&(o+=" "),o+=f);return o}function n(){for(var n,t,f=0,o="",r=arguments.length;f<r;f++)(n=arguments[f])&&(t=e(n))&&(o&&(o+=" "),o+=t);return o}return n.clsx=n,n}));
|
||||
1
web/node_modules/clsx/dist/clsx.mjs
generated
vendored
Normal file
1
web/node_modules/clsx/dist/clsx.mjs
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}export function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}export default clsx;
|
||||
1
web/node_modules/clsx/dist/lite.js
generated
vendored
Normal file
1
web/node_modules/clsx/dist/lite.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
function e(){for(var e,o=0,r="",t=arguments.length;o<t;o++)(e=arguments[o])&&"string"==typeof e&&(r+=(r&&" ")+e);return r}module.exports=e,module.exports.clsx=e;
|
||||
1
web/node_modules/clsx/dist/lite.mjs
generated
vendored
Normal file
1
web/node_modules/clsx/dist/lite.mjs
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export function clsx(){for(var t,r=0,e="",n=arguments.length;r<n;r++)(t=arguments[r])&&"string"==typeof t&&(e+=(e&&" ")+t);return e}export default clsx;
|
||||
9
web/node_modules/clsx/license
generated
vendored
Normal file
9
web/node_modules/clsx/license
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
60
web/node_modules/clsx/package.json
generated
vendored
Normal file
60
web/node_modules/clsx/package.json
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"name": "clsx",
|
||||
"version": "2.1.1",
|
||||
"repository": "lukeed/clsx",
|
||||
"description": "A tiny (239B) utility for constructing className strings conditionally.",
|
||||
"module": "dist/clsx.mjs",
|
||||
"unpkg": "dist/clsx.min.js",
|
||||
"main": "dist/clsx.js",
|
||||
"types": "clsx.d.ts",
|
||||
"license": "MIT",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./clsx.d.mts",
|
||||
"default": "./dist/clsx.mjs"
|
||||
},
|
||||
"default": {
|
||||
"types": "./clsx.d.ts",
|
||||
"default": "./dist/clsx.js"
|
||||
}
|
||||
},
|
||||
"./lite": {
|
||||
"import": {
|
||||
"types": "./clsx.d.mts",
|
||||
"default": "./dist/lite.mjs"
|
||||
},
|
||||
"default": {
|
||||
"types": "./clsx.d.ts",
|
||||
"default": "./dist/lite.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"author": {
|
||||
"name": "Luke Edwards",
|
||||
"email": "luke.edwards05@gmail.com",
|
||||
"url": "https://lukeed.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node bin",
|
||||
"test": "uvu -r esm test"
|
||||
},
|
||||
"files": [
|
||||
"*.d.mts",
|
||||
"*.d.ts",
|
||||
"dist"
|
||||
],
|
||||
"keywords": [
|
||||
"classes",
|
||||
"classname",
|
||||
"classnames"
|
||||
],
|
||||
"devDependencies": {
|
||||
"esm": "3.2.25",
|
||||
"terser": "4.8.0",
|
||||
"uvu": "0.5.4"
|
||||
}
|
||||
}
|
||||
154
web/node_modules/clsx/readme.md
generated
vendored
Normal file
154
web/node_modules/clsx/readme.md
generated
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
# clsx [](https://github.com/lukeed/clsx/actions?query=workflow%3ACI) [](https://codecov.io/gh/lukeed/clsx) [](https://licenses.dev/npm/clsx)
|
||||
|
||||
> A tiny (239B) utility for constructing `className` strings conditionally.<Br>Also serves as a [faster](bench) & smaller drop-in replacement for the `classnames` module.
|
||||
|
||||
This module is available in three formats:
|
||||
|
||||
* **ES Module**: `dist/clsx.mjs`
|
||||
* **CommonJS**: `dist/clsx.js`
|
||||
* **UMD**: `dist/clsx.min.js`
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save clsx
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import clsx from 'clsx';
|
||||
// or
|
||||
import { clsx } from 'clsx';
|
||||
|
||||
// Strings (variadic)
|
||||
clsx('foo', true && 'bar', 'baz');
|
||||
//=> 'foo bar baz'
|
||||
|
||||
// Objects
|
||||
clsx({ foo:true, bar:false, baz:isTrue() });
|
||||
//=> 'foo baz'
|
||||
|
||||
// Objects (variadic)
|
||||
clsx({ foo:true }, { bar:false }, null, { '--foobar':'hello' });
|
||||
//=> 'foo --foobar'
|
||||
|
||||
// Arrays
|
||||
clsx(['foo', 0, false, 'bar']);
|
||||
//=> 'foo bar'
|
||||
|
||||
// Arrays (variadic)
|
||||
clsx(['foo'], ['', 0, false, 'bar'], [['baz', [['hello'], 'there']]]);
|
||||
//=> 'foo bar baz hello there'
|
||||
|
||||
// Kitchen sink (with nesting)
|
||||
clsx('foo', [1 && 'bar', { baz:false, bat:null }, ['hello', ['world']]], 'cya');
|
||||
//=> 'foo bar hello world cya'
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### clsx(...input)
|
||||
Returns: `String`
|
||||
|
||||
#### input
|
||||
Type: `Mixed`
|
||||
|
||||
The `clsx` function can take ***any*** number of arguments, each of which can be an Object, Array, Boolean, or String.
|
||||
|
||||
> **Important:** _Any_ falsey values are discarded!<br>Standalone Boolean values are discarded as well.
|
||||
|
||||
```js
|
||||
clsx(true, false, '', null, undefined, 0, NaN);
|
||||
//=> ''
|
||||
```
|
||||
|
||||
## Modes
|
||||
|
||||
There are multiple "versions" of `clsx` available, which allows you to bring only the functionality you need!
|
||||
|
||||
#### `clsx`
|
||||
> **Size (gzip):** 239 bytes<br>
|
||||
> **Availability:** CommonJS, ES Module, UMD
|
||||
|
||||
The default `clsx` module; see [API](#API) for info.
|
||||
|
||||
```js
|
||||
import { clsx } from 'clsx';
|
||||
// or
|
||||
import clsx from 'clsx';
|
||||
```
|
||||
|
||||
#### `clsx/lite`
|
||||
> **Size (gzip):** 140 bytes<br>
|
||||
> **Availability:** CommonJS, ES Module<br>
|
||||
> **CAUTION:** Accepts **ONLY** string arguments!
|
||||
|
||||
Ideal for applications that ***only*** use the string-builder pattern.
|
||||
|
||||
Any non-string arguments are ignored!
|
||||
|
||||
```js
|
||||
import { clsx } from 'clsx/lite';
|
||||
// or
|
||||
import clsx from 'clsx/lite';
|
||||
|
||||
// string
|
||||
clsx('hello', true && 'foo', false && 'bar');
|
||||
// => "hello foo"
|
||||
|
||||
// NOTE: Any non-string input(s) ignored
|
||||
clsx({ foo: true });
|
||||
//=> ""
|
||||
```
|
||||
|
||||
## Benchmarks
|
||||
|
||||
For snapshots of cross-browser results, check out the [`bench`](bench) directory~!
|
||||
|
||||
## Support
|
||||
|
||||
All versions of Node.js are supported.
|
||||
|
||||
All browsers that support [`Array.isArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Browser_compatibility) are supported (IE9+).
|
||||
|
||||
>**Note:** For IE8 support and older, please install `clsx@1.0.x` and beware of [#17](https://github.com/lukeed/clsx/issues/17).
|
||||
|
||||
## Tailwind Support
|
||||
|
||||
Here some additional (optional) steps to enable classes autocompletion using `clsx` with Tailwind CSS.
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
Visual Studio Code
|
||||
</summary>
|
||||
|
||||
1. [Install the "Tailwind CSS IntelliSense" Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss)
|
||||
|
||||
2. Add the following to your [`settings.json`](https://code.visualstudio.com/docs/getstarted/settings):
|
||||
|
||||
```json
|
||||
{
|
||||
"tailwindCSS.experimental.classRegex": [
|
||||
["clsx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
|
||||
]
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
||||
You may find the [`clsx/lite`](#clsxlite) module useful within Tailwind contexts. This is especially true if/when your application **only** composes classes in this pattern:
|
||||
|
||||
```js
|
||||
clsx('text-base', props.active && 'text-primary', props.className);
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
- [obj-str](https://github.com/lukeed/obj-str) - A smaller (96B) and similiar utility that only works with Objects.
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Luke Edwards](https://lukeed.com)
|
||||
Reference in New Issue
Block a user