clan-core/pkgs/ui
Johannes Kirschbauer c9d2cfcda5
All checks were successful
build / test (pull_request) Successful in 27s
init template view
2023-08-19 12:04:27 +02:00
..
nix add static code analysis 2023-08-19 10:11:14 +02:00
public add more example utils to dashboard 2023-08-13 12:55:22 +02:00
src init template view 2023-08-19 12:04:27 +02:00
.envrc init: ui bootstrapping nextjs 2023-08-05 11:42:48 +02:00
.eslintrc.json add static code analysis 2023-08-19 10:11:14 +02:00
.gitignore init: ui bootstrapping nextjs 2023-08-05 11:42:48 +02:00
default.nix init: ui bootstrapping nextjs 2023-08-05 11:42:48 +02:00
flake-module.nix init: ui bootstrapping nextjs 2023-08-05 11:42:48 +02:00
next.config.js init: layout with simple side navigation 2023-08-06 17:31:44 +02:00
package-lock.json add static code analysis 2023-08-19 10:11:14 +02:00
package.json add static code analysis 2023-08-19 10:11:14 +02:00
pconf.cjs add: fix responsive layout transition 2023-08-12 13:44:35 +02:00
postcss.config.js init: layout 2023-08-05 12:10:58 +00:00
prettier.config.cjs add: some util to dashboard 2023-08-12 17:11:41 +02:00
README.md add: some util to dashboard 2023-08-12 17:11:41 +02:00
shell.nix Added fonts symlink to devShell 2023-08-05 12:34:04 +02:00
tailwind.config.js init: layout with simple side navigation 2023-08-06 17:31:44 +02:00
tsconfig.json init: layout 2023-08-05 12:10:58 +00:00

cLan - awesome UI

Prettier

To use prettier and the plugins using vscode/vscodium the prettier.config.js needs to be at the root level of the editor's file explorer

cd clan-core/pkgs/ui && code .

When inspecting OUTPUT > Prettier the config should've been loaded:

["INFO" - 1:47:43 PM] Formatting completed in 48ms.
["INFO" - 1:48:07 PM] Using config file at '.../clan-core/pkgs/ui/prettier.config.cjs'

If you have enabled formatOnSave the tailwind classes should get sorted into the officially recommended order.

prettier -w ./src/ --config prettier.config.cjs

Commands

After changing dependencies with

npm <dep> i --package-lock-only

Update floco dependencies:

nix run github:aakropotkin/floco -- translate -pt -o ./nix/pdefs.nix

The prettier tailwind class sorting is not yet working properly with our devShell integration.

To sort classnames manually:

cd /clan-core/pkgs/ui/