Compare commits
6 commits
master
...
tlater/upd
| Author | SHA1 | Date | |
|---|---|---|---|
| f8d3563ad9 | |||
| a9da311993 | |||
| 82c1d22d3d | |||
| 4b0e6f0a8c | |||
| 92e3fc6602 | |||
| a3ae52dea8 |
18 changed files with 15601 additions and 8425 deletions
2
.git-blame-ignore-revs
Normal file
2
.git-blame-ignore-revs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Switch to nixfmt formatting
|
||||
82c1d22d3dd74fb5da489162a9d4caba9ab3baba
|
||||
75
flake.lock
generated
75
flake.lock
generated
|
|
@ -2,16 +2,18 @@
|
|||
"nodes": {
|
||||
"dream2nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"purescript-overlay": "purescript-overlay",
|
||||
"pyproject-nix": "pyproject-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1735160684,
|
||||
"narHash": "sha256-n5CwhmqKxifuD4Sq4WuRP/h5LO6f23cGnSAuJemnd/4=",
|
||||
"lastModified": 1763413832,
|
||||
"narHash": "sha256-dkqBwDXiv8MPoFyIvOuC4bVubAP+TlVZUkVMB78TTSg=",
|
||||
"owner": "nix-community",
|
||||
"repo": "dream2nix",
|
||||
"rev": "8ce6284ff58208ed8961681276f82c2f8f978ef4",
|
||||
"rev": "5658fba3a0b6b7d5cb0460b949651f64f644a743",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -28,11 +30,11 @@
|
|||
"rust-analyzer-src": "rust-analyzer-src"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1737181903,
|
||||
"narHash": "sha256-lvp77MhGzSN+ICd0MugppCjQR6cmlM2iAC5cjy2ZsaA=",
|
||||
"lastModified": 1763621140,
|
||||
"narHash": "sha256-nx0zy/+yR57FwloXmatf3CaXgzA4zJqIFbplnpaKn/Y=",
|
||||
"owner": "nix-community",
|
||||
"repo": "fenix",
|
||||
"rev": "ac79bb490b8c1af4bbc587b84c76f9527d6b14f7",
|
||||
"rev": "d4e14d370b4763c67ea02a39f01f5366297d61cb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -59,34 +61,15 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1729850857,
|
||||
"narHash": "sha256-WvLXzNNnnw+qpFOmgaM3JUlNEH+T4s22b5i2oyyCpXE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "41dea55321e5a999b17033296ac05fe8a8b5a257",
|
||||
"type": "github"
|
||||
"lastModified": 1763334038,
|
||||
"narHash": "sha256-3FzFzhmeuKK2dLv6pm6rC1QTcukVe+xcLpKOrE5Fx5g=",
|
||||
"rev": "4c8cdd5b1a630e8f72c9dd9bf582b1afb3127d2c",
|
||||
"type": "tarball",
|
||||
"url": "https://releases.nixos.org/nixos/25.05/nixos-25.05.812880.4c8cdd5b1a63/nixexprs.tar.xz?lastModified=1763334038&rev=4c8cdd5b1a630e8f72c9dd9bf582b1afb3127d2c"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1737165118,
|
||||
"narHash": "sha256-s40Kk/OulP3J/1JvC3VT16U4r/Xw6Qdi7SRw3LYkPWs=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "6a3ae7a5a12fb8cac2d59d7df7cbd95f9b2f0566",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-24.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
"type": "tarball",
|
||||
"url": "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz"
|
||||
}
|
||||
},
|
||||
"purescript-overlay": {
|
||||
|
|
@ -113,18 +96,22 @@
|
|||
}
|
||||
},
|
||||
"pyproject-nix": {
|
||||
"flake": false,
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"dream2nix",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1702448246,
|
||||
"narHash": "sha256-hFg5s/hoJFv7tDpiGvEvXP0UfFvFEDgTdyHIjDVHu1I=",
|
||||
"owner": "davhau",
|
||||
"lastModified": 1752481895,
|
||||
"narHash": "sha256-luVj97hIMpCbwhx3hWiRwjP2YvljWy8FM+4W9njDhLA=",
|
||||
"owner": "pyproject-nix",
|
||||
"repo": "pyproject.nix",
|
||||
"rev": "5a06a2697b228c04dd2f35659b4b659ca74f7aeb",
|
||||
"rev": "16ee295c25107a94e59a7fc7f2e5322851781162",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "davhau",
|
||||
"ref": "dream2nix",
|
||||
"owner": "pyproject-nix",
|
||||
"repo": "pyproject.nix",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
@ -133,17 +120,17 @@
|
|||
"inputs": {
|
||||
"dream2nix": "dream2nix",
|
||||
"fenix": "fenix",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"rust-analyzer-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1737140097,
|
||||
"narHash": "sha256-m4SN8DeKzsP10EQFS7+2zgGfCrMhTfTt1H0QRNesD08=",
|
||||
"lastModified": 1763555010,
|
||||
"narHash": "sha256-SG8PRrLir8RkXdyBm/NnuUo3WqS7HW6ltJLZnAWjBjA=",
|
||||
"owner": "rust-lang",
|
||||
"repo": "rust-analyzer",
|
||||
"rev": "f61bfa4d7feb84d07538d361fe77d34a29e3b375",
|
||||
"rev": "636c3aa24ec6762347c334c030b5034c351d6e05",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
130
flake.nix
130
flake.nix
|
|
@ -2,8 +2,11 @@
|
|||
description = "tlater.net web server";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
dream2nix.url = "github:nix-community/dream2nix";
|
||||
nixpkgs.url = "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz";
|
||||
dream2nix = {
|
||||
url = "github:nix-community/dream2nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
fenix = {
|
||||
url = "github:nix-community/fenix";
|
||||
|
|
@ -11,70 +14,77 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
dream2nix,
|
||||
fenix,
|
||||
}: let
|
||||
# At the moment, we only deploy to x86_64-linux. Update when we
|
||||
# care about another platform.
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
fenixPkgs = fenix.packages.${system};
|
||||
ownPkgs = self.packages.${system};
|
||||
in {
|
||||
packages.${system} = dream2nix.lib.importPackages {
|
||||
projectRoot = ./.;
|
||||
projectRootFile = "flake.nix";
|
||||
packagesDir = ./packages;
|
||||
packageSets = {
|
||||
nixpkgs = pkgs;
|
||||
fenix = fenixPkgs;
|
||||
};
|
||||
};
|
||||
|
||||
apps.${system} = {
|
||||
default = let
|
||||
inherit (ownPkgs) server templates;
|
||||
inherit (pkgs) writeShellScript;
|
||||
in {
|
||||
type = "app";
|
||||
program = builtins.toString (writeShellScript "tlaternet-webserver" ''
|
||||
${server}/bin/tlaternet-webserver --template-directory ${templates}
|
||||
'');
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
dream2nix,
|
||||
fenix,
|
||||
}:
|
||||
let
|
||||
# At the moment, we only deploy to x86_64-linux. Update when we
|
||||
# care about another platform.
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
fenixPkgs = fenix.packages.${system};
|
||||
ownPkgs = self.packages.${system};
|
||||
in
|
||||
{
|
||||
packages.${system} = dream2nix.lib.importPackages {
|
||||
projectRoot = ./.;
|
||||
projectRootFile = "flake.nix";
|
||||
packagesDir = ./packages;
|
||||
packageSets = {
|
||||
nixpkgs = pkgs;
|
||||
fenix = fenixPkgs;
|
||||
};
|
||||
};
|
||||
|
||||
update = let
|
||||
update-script = pkgs.callPackage ./nix/update.nix {inherit self;};
|
||||
in {
|
||||
type = "app";
|
||||
program = "${update-script}/bin/update";
|
||||
apps.${system} = {
|
||||
default =
|
||||
let
|
||||
inherit (ownPkgs) server templates;
|
||||
inherit (pkgs) writeShellScript;
|
||||
in
|
||||
{
|
||||
type = "app";
|
||||
program = builtins.toString (
|
||||
writeShellScript "tlaternet-webserver" ''
|
||||
${server}/bin/tlaternet-webserver --template-directory ${templates}
|
||||
''
|
||||
);
|
||||
};
|
||||
|
||||
update =
|
||||
let
|
||||
update-script = pkgs.callPackage ./nix/update.nix { inherit self; };
|
||||
in
|
||||
{
|
||||
type = "app";
|
||||
program = "${update-script}/bin/update";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixosModules.default = import ./nix/module.nix {inherit self system;};
|
||||
nixosModules.default = import ./nix/module.nix { inherit self system; };
|
||||
|
||||
devShells.${system} = {
|
||||
server = pkgs.mkShell {
|
||||
packages = [
|
||||
(fenixPkgs.stable.withComponents [
|
||||
"rustc"
|
||||
"cargo"
|
||||
"rustfmt"
|
||||
"rust-std"
|
||||
"rust-docs"
|
||||
"clippy"
|
||||
"rust-src"
|
||||
"rust-analysis"
|
||||
])
|
||||
fenixPkgs.rust-analyzer
|
||||
];
|
||||
devShells.${system} = {
|
||||
server = pkgs.mkShell {
|
||||
packages = [
|
||||
(fenixPkgs.stable.withComponents [
|
||||
"rustc"
|
||||
"cargo"
|
||||
"rustfmt"
|
||||
"rust-std"
|
||||
"rust-docs"
|
||||
"clippy"
|
||||
"rust-src"
|
||||
"rust-analysis"
|
||||
])
|
||||
fenixPkgs.rust-analyzer
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
checks.${system} = import ./nix/checks {
|
||||
inherit self pkgs;
|
||||
checks.${system} = import ./nix/checks { inherit self pkgs; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
{ pkgs, self }:
|
||||
let
|
||||
callPackage = pkgs.lib.callPackageWith (pkgs // { inherit self; });
|
||||
in
|
||||
{
|
||||
pkgs,
|
||||
self,
|
||||
}: let
|
||||
callPackage = pkgs.lib.callPackageWith (pkgs // {inherit self;});
|
||||
in {
|
||||
lintNix = callPackage ./lint-nix.nix {};
|
||||
openHomepage = callPackage ./open-homepage.nix {};
|
||||
lintNix = callPackage ./lint-nix.nix { };
|
||||
openHomepage = callPackage ./open-homepage.nix { };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,26 +2,31 @@
|
|||
self,
|
||||
lib,
|
||||
stdenv,
|
||||
alejandra,
|
||||
nixfmt-rfc-style,
|
||||
deadnix,
|
||||
statix,
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) sourceFilesBySuffices;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
dontPatch = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
dontInstall = true;
|
||||
doCheck = true;
|
||||
stdenv.mkDerivation {
|
||||
dontPatch = true;
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
dontInstall = true;
|
||||
doCheck = true;
|
||||
|
||||
name = "lint-nix";
|
||||
src = sourceFilesBySuffices self [".nix"];
|
||||
checkInputs = [alejandra deadnix statix];
|
||||
checkPhase = ''
|
||||
mkdir -p $out
|
||||
alejandra --check . | tee $out/alejandra.log
|
||||
deadnix --fail | tee $out/deadnix.log
|
||||
statix check | tee $out/statix.log
|
||||
'';
|
||||
}
|
||||
name = "lint-nix";
|
||||
src = sourceFilesBySuffices self [ ".nix" ];
|
||||
checkInputs = [
|
||||
nixfmt-rfc-style
|
||||
deadnix
|
||||
statix
|
||||
];
|
||||
checkPhase = ''
|
||||
mkdir -p $out
|
||||
nixfmt --strict --check . | tee $out/nixfmt.log
|
||||
deadnix --fail | tee $out/deadnix.log
|
||||
statix check | tee $out/statix.log
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,16 @@
|
|||
{
|
||||
self,
|
||||
nixosTest,
|
||||
}:
|
||||
{ self, nixosTest }:
|
||||
nixosTest {
|
||||
name = "open-homepage";
|
||||
|
||||
nodes = {
|
||||
# Host with just the default configuration
|
||||
defaults = {
|
||||
imports = [self.nixosModules.default];
|
||||
imports = [ self.nixosModules.default ];
|
||||
services.tlaternet-webserver.enable = true;
|
||||
};
|
||||
|
||||
host = {
|
||||
imports = [self.nixosModules.default];
|
||||
imports = [ self.nixosModules.default ];
|
||||
|
||||
services.tlaternet-webserver = {
|
||||
enable = true;
|
||||
|
|
@ -23,10 +20,10 @@ nixosTest {
|
|||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [8080];
|
||||
networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||
};
|
||||
|
||||
client = {};
|
||||
client = { };
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
|
|
|
|||
|
|
@ -1,18 +1,14 @@
|
|||
{
|
||||
self,
|
||||
system,
|
||||
}: {
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
{ self, system }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.types) str int;
|
||||
inherit (lib.strings) escapeShellArgs;
|
||||
inherit (self.packages.${system}) server templates;
|
||||
|
||||
cfg = config.services.tlaternet-webserver;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
services.tlaternet-webserver = {
|
||||
enable = mkEnableOption "tlaternet web server";
|
||||
|
|
@ -35,8 +31,8 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
systemd.services.tlaternet-webserver = {
|
||||
description = "tlaternet webserver";
|
||||
wantedBy = ["multi-user.target"];
|
||||
after = ["network.target"];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
|
||||
script = escapeShellArgs [
|
||||
"${server}/bin/tlaternet-webserver"
|
||||
|
|
@ -60,14 +56,21 @@ in {
|
|||
ProtectKernelModules = true;
|
||||
ProtectKernelLogs = true;
|
||||
ProtectControlGroups = true;
|
||||
RestrictAddressFamilies = ["AF_UNIX" "AF_INET" "AF_INET6"];
|
||||
RestrictAddressFamilies = [
|
||||
"AF_UNIX"
|
||||
"AF_INET"
|
||||
"AF_INET6"
|
||||
];
|
||||
RestrictNamespaces = true;
|
||||
LockPersonality = true;
|
||||
MemoryDenyWriteExecute = true;
|
||||
RestrictRealtime = true;
|
||||
RestrictSUIDSGID = true;
|
||||
SystemCallArchitectures = "native";
|
||||
SystemCallFilter = ["@system-service" "~@privileged @resources @setuid @keyring"];
|
||||
SystemCallFilter = [
|
||||
"@system-service"
|
||||
"~@privileged @resources @setuid @keyring"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,20 +6,25 @@
|
|||
git,
|
||||
nix,
|
||||
yq-go,
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
selfPackages = self.packages.${system};
|
||||
inherit (selfPackages.server.config.deps) cargo;
|
||||
inherit (selfPackages.templates.config.deps) npm;
|
||||
|
||||
npm-check-updates =
|
||||
(builtins.elemAt (lib.attrValues
|
||||
selfPackages.templates.config.nodejs-granular-v3.deps.npm-check-updates)
|
||||
0)
|
||||
.package-func
|
||||
.result;
|
||||
(builtins.elemAt (lib.attrValues selfPackages.templates.config.nodejs-granular-v3.deps.npm-check-updates) 0)
|
||||
.package-func.result;
|
||||
in
|
||||
writeShellApplication {
|
||||
name = "update";
|
||||
runtimeInputs = [cargo git nix npm npm-check-updates yq-go];
|
||||
text = builtins.readFile ./scripts/update.sh;
|
||||
}
|
||||
writeShellApplication {
|
||||
name = "update";
|
||||
runtimeInputs = [
|
||||
cargo
|
||||
git
|
||||
nix
|
||||
npm
|
||||
npm-check-updates
|
||||
yq-go
|
||||
];
|
||||
text = builtins.readFile ./scripts/update.sh;
|
||||
}
|
||||
|
|
|
|||
891
packages/server/Cargo.lock
generated
891
packages/server/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,16 +1,26 @@
|
|||
{dream2nix, ...}: {
|
||||
{ dream2nix, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
dream2nix.modules.dream2nix.rust-cargo-lock
|
||||
dream2nix.modules.dream2nix.rust-cargo-vendor
|
||||
dream2nix.modules.dream2nix.rust-crane
|
||||
];
|
||||
|
||||
deps = {fenix, ...}: {
|
||||
deps.cargo = fenix.stable.minimalToolchain;
|
||||
};
|
||||
deps =
|
||||
{ fenix, ... }:
|
||||
{
|
||||
deps.cargo = fenix.stable.minimalToolchain;
|
||||
};
|
||||
|
||||
name = "tlaternet-webserver";
|
||||
version = "0.1.0";
|
||||
inherit
|
||||
((lib.pipe ./Cargo.toml [
|
||||
builtins.readFile
|
||||
builtins.fromTOML
|
||||
]).package
|
||||
)
|
||||
name
|
||||
version
|
||||
;
|
||||
|
||||
mkDerivation = {
|
||||
src = ./.;
|
||||
|
|
|
|||
|
|
@ -3,28 +3,37 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
dream2nix.modules.dream2nix.nodejs-package-json-v3
|
||||
dream2nix.modules.dream2nix.nodejs-granular-v3
|
||||
dream2nix.modules.dream2nix.nodejs-devshell-v3
|
||||
];
|
||||
|
||||
deps = {nixpkgs, ...}: {
|
||||
inherit (nixpkgs) pkg-config runCommandLocal rsync vips yj;
|
||||
};
|
||||
deps =
|
||||
{ nixpkgs, ... }:
|
||||
{
|
||||
inherit (nixpkgs)
|
||||
pkg-config
|
||||
runCommandLocal
|
||||
rsync
|
||||
vips
|
||||
yj
|
||||
;
|
||||
};
|
||||
|
||||
name = "tlaternet-templates";
|
||||
version = "0.1.0";
|
||||
|
||||
mkDerivation = {
|
||||
src = config.deps.runCommandLocal "source" {nativeBuildInputs = [config.deps.yj];} ''
|
||||
src = config.deps.runCommandLocal "source" { nativeBuildInputs = [ config.deps.yj ]; } ''
|
||||
cp -r ${./.} $out/
|
||||
chmod -R u+w $out
|
||||
yj < $out/package.yaml > $out/package.json
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [config.deps.yj];
|
||||
nativeBuildInputs = [ config.deps.yj ];
|
||||
|
||||
# The default phase (which is hidden in `preInstallPhases`) will
|
||||
# copy the full node_modules directory to the output, and symlink
|
||||
|
|
@ -32,7 +41,7 @@
|
|||
#
|
||||
# Since this package's output is static HTML/JS, we do not want
|
||||
# that.
|
||||
preInstallPhases = lib.mkForce [];
|
||||
preInstallPhases = lib.mkForce [ ];
|
||||
installPhase = ''
|
||||
cp -r dist $out
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
package-lock.json
|
||||
10984
packages/templates/lock.json
Normal file
10984
packages/templates/lock.json
Normal file
File diff suppressed because it is too large
Load diff
11552
packages/templates/package-lock.json
generated
11552
packages/templates/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -7,55 +7,59 @@ private: true
|
|||
|
||||
dependencies:
|
||||
# Libraries
|
||||
gl-matrix: ^3.4.3 # To help with 3D math in WebGL code
|
||||
gl-matrix: ^3.4.4 # To help with 3D math in WebGL code
|
||||
classnames: ^2.5.1 # To manage CSS class names in react code
|
||||
|
||||
# Fonts
|
||||
hack-font: ^3.3.0
|
||||
'@fontsource/arimo': ^5.0.18
|
||||
'@fontsource/nunito': ^5.0.16
|
||||
'@fortawesome/fontawesome-free': ^6.5.1
|
||||
'@fontsource/arimo': ^5.2.8
|
||||
'@fontsource/nunito': ^5.2.7
|
||||
'@fortawesome/fontawesome-free': ^7.1.0
|
||||
|
||||
# Frameworks for static content
|
||||
bulma: ^0.9.4
|
||||
bulma: ^1.0.4
|
||||
|
||||
# React-redux stuff
|
||||
react: ^18.2.0
|
||||
react-dom: ^18.2.0
|
||||
react: ^19.2.0
|
||||
react-dom: ^19.2.0
|
||||
react-use-error-boundary: ^3.0.0 # TODO(tlater): Remove when react implement their own
|
||||
redux: ^5.0.1
|
||||
'@reduxjs/toolkit': ^2.0.1
|
||||
react-redux: ^9.0.4
|
||||
'@reduxjs/toolkit': ^2.10.1
|
||||
react-redux: ^9.2.0
|
||||
|
||||
devDependencies:
|
||||
# Parcel & plugins
|
||||
parcel: ^2.10.3
|
||||
'@parcel/transformer-sass': ^2.10.3
|
||||
'@parcel/transformer-glsl': ^2.10.3
|
||||
parcel: ^2.16.1
|
||||
'@parcel/transformer-sass': ^2.16.1
|
||||
'@parcel/transformer-glsl': ^2.16.1
|
||||
|
||||
# Build tools
|
||||
typescript: ^5.3.3
|
||||
sass: ^1.69.6
|
||||
typescript: ^5.9.3
|
||||
sass: ^1.94.2
|
||||
posthtml-extend: ^0.6.5
|
||||
posthtml-favicons: ^1.4.0
|
||||
posthtml-include: ^1.7.4
|
||||
posthtml-markdownit: ^1.3.1
|
||||
posthtml-include: ^2.0.1
|
||||
posthtml-markdownit: ^3.1.2
|
||||
|
||||
'@babel/preset-env': ^7.23.7
|
||||
'@babel/preset-env': ^7.28.5
|
||||
|
||||
'@fontsource-utils/scss': ^0.2.2
|
||||
'@fontsource-variable/arimo': ^5.2.8
|
||||
'@fontsource-variable/nunito': ^5.2.7
|
||||
|
||||
# Type shims
|
||||
'@types/react-dom': ^18.2.18
|
||||
'@types/react-redux': ^7.1.33
|
||||
'@types/react-dom': ^19.2.3
|
||||
'@types/react-redux': ^7.1.34
|
||||
|
||||
# Dev tools
|
||||
npm-check-updates: ^16.14.12
|
||||
prettier: ^3.1.1
|
||||
typescript-language-server: ^4.2.0
|
||||
npm-check-updates: ^19.1.2
|
||||
prettier: ^3.6.2
|
||||
typescript-language-server: ^5.1.3
|
||||
typescript-eslint-language-service: ^5.0.5
|
||||
eslint: ^8.56.0
|
||||
'@typescript-eslint/parser': ^6.17.0
|
||||
'@typescript-eslint/eslint-plugin': ^6.17.0
|
||||
vscode-langservers-extracted: ^4.8.0
|
||||
eslint: ^9.39.1
|
||||
'@typescript-eslint/parser': ^8.47.0
|
||||
'@typescript-eslint/eslint-plugin': ^8.47.0
|
||||
vscode-langservers-extracted: ^4.10.0
|
||||
|
||||
scripts:
|
||||
# Dev workflow
|
||||
|
|
@ -86,23 +90,23 @@ posthtml:
|
|||
root: src
|
||||
posthtml-include:
|
||||
root: src
|
||||
posthtml-favicons:
|
||||
root: src
|
||||
outDir: ./dist/
|
||||
configuration:
|
||||
appName: tlater.net
|
||||
appShortName: tlater.net
|
||||
appDescription: tlater's home page
|
||||
developerName: Tristan Daniël Maat
|
||||
developerURL: https://tlater.net
|
||||
dir: auto
|
||||
lang: en-US
|
||||
background: '#0f0f0f'
|
||||
theme_color: '#99d1ce'
|
||||
appleStatusBarStyle: black-translucent
|
||||
display: browser
|
||||
orientation: any
|
||||
start_url: https://tlater.net
|
||||
version: "1.0"
|
||||
icons:
|
||||
favicons: true
|
||||
# posthtml-favicons:
|
||||
# root: src
|
||||
# outDir: ./dist/
|
||||
# configuration:
|
||||
# appName: tlater.net
|
||||
# appShortName: tlater.net
|
||||
# appDescription: tlater's home page
|
||||
# developerName: Tristan Daniël Maat
|
||||
# developerURL: https://tlater.net
|
||||
# dir: auto
|
||||
# lang: en-US
|
||||
# background: '#0f0f0f'
|
||||
# theme_color: '#99d1ce'
|
||||
# appleStatusBarStyle: black-translucent
|
||||
# display: browser
|
||||
# orientation: any
|
||||
# start_url: https://tlater.net
|
||||
# version: "1.0"
|
||||
# icons:
|
||||
# favicons: true
|
||||
|
|
|
|||
|
|
@ -1,45 +1,52 @@
|
|||
@use "sass:color";
|
||||
@use "./_fonts";
|
||||
|
||||
@import "~/node_modules/bulma/sass/utilities/initial-variables.sass";
|
||||
@import "~/node_modules/bulma/sass/utilities/functions.sass";
|
||||
|
||||
$black: #0f0f0f;
|
||||
$grey-darker: #11151c;
|
||||
$grey-light: #dddddd;
|
||||
$white: #ffffff;
|
||||
|
||||
$red: #dc322f;
|
||||
$orange: #d26937;
|
||||
$yellow: #b58900;
|
||||
$blue: #195466;
|
||||
$cyan: #599cab;
|
||||
$green: #2aa889;
|
||||
|
||||
$grey-light: #dddddd;
|
||||
$primary: #99d1ce;
|
||||
$link: $green;
|
||||
$link-hover: color.scale($green, $lightness: +10%);
|
||||
$link-active: color.scale($green, $lightness: +10%);
|
||||
$link-focus: color.scale($green, $lightness: +10%);
|
||||
$input-color: $grey-light;
|
||||
$input-placeholder-color: $grey-light; // Some opacity is applied to this
|
||||
|
||||
$weight-normal: 400;
|
||||
|
||||
$scheme-main: $black;
|
||||
|
||||
$family-sans-serif: Nunito, $family-sans-serif;
|
||||
$family-monospace: Hack, $family-monospace;
|
||||
|
||||
$text: $grey-light;
|
||||
$text-strong: $primary;
|
||||
$label-color: $text;
|
||||
$grey-darker: #11151c;
|
||||
|
||||
$content-heading-color: $text;
|
||||
$hr-background-color: $grey-light;
|
||||
$hr-height: 1px;
|
||||
@use "bulma/sass" with (
|
||||
$family-sans-serif: "Nunito",
|
||||
$family-monospace: "Hack",
|
||||
|
||||
$black: $black,
|
||||
$grey-darker: $grey-darker,
|
||||
$grey-light: $grey-light,
|
||||
$white: #ffffff,
|
||||
|
||||
$red: #dc322f,
|
||||
$orange: #d26937,
|
||||
$yellow: #b58900,
|
||||
$blue: #195466,
|
||||
$cyan: #599cab,
|
||||
$green: $green,
|
||||
|
||||
$primary: $primary,
|
||||
$link: $green,
|
||||
// $link-hover: color.scale($green, $lightness: +10%),
|
||||
// $link-active: color.scale($green, $lightness: +10%),
|
||||
// $link-focus: color.scale($green, $lightness: +10%),
|
||||
// $input-color: $grey-light,
|
||||
$input-placeholder-color: $grey-light, // Some opacity is applied to this
|
||||
|
||||
$weight-normal: 400,
|
||||
|
||||
$scheme-main: $black,
|
||||
|
||||
$text: $grey-light,
|
||||
$text-strong: $primary,
|
||||
$label-color: $text,
|
||||
|
||||
$content-heading-color: $text,
|
||||
$hr-background-color: $grey-light,
|
||||
$hr-height: 1px,
|
||||
|
||||
$pre-background: $grey-darker
|
||||
);
|
||||
|
||||
$pre-background: $grey-darker;
|
||||
|
||||
@import "~/node_modules/bulma";
|
||||
@import "./_navbar";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,11 @@
|
|||
@use "~/node_modules/@fontsource/nunito/scss/mixins" as Nunito;
|
||||
@use "~/node_modules/@fontsource/arimo/scss/mixins" as Arimo;
|
||||
@use "npm:@fontsource-utils/scss/src/mixins.scss" as fontsource with (
|
||||
$display: auto
|
||||
);
|
||||
@use "npm:@fontsource-variable/arimo/scss/metadata.scss" as arimo;
|
||||
@use "npm:@fontsource-variable/nunito/scss/metadata.scss" as nunito;
|
||||
|
||||
@include Nunito.faces(
|
||||
@include fontsource.faces(
|
||||
$metadata: nunito.$metadata,
|
||||
$weights: (
|
||||
300,
|
||||
400,
|
||||
|
|
@ -9,36 +13,36 @@
|
|||
600,
|
||||
700,
|
||||
),
|
||||
$display: auto,
|
||||
$subsets: latin,
|
||||
$styles: (
|
||||
normal,
|
||||
italic,
|
||||
),
|
||||
$directory: "npm:@fontsource/nunito/files"
|
||||
$family: "Nunito",
|
||||
$directory: "npm:@fontsource-variable/nunito/files"
|
||||
);
|
||||
|
||||
@include Arimo.faces(
|
||||
@include fontsource.faces(
|
||||
$metadata: arimo.$metadata,
|
||||
$weights: 400,
|
||||
$display: auto,
|
||||
$subsets: latin,
|
||||
$styles: normal,
|
||||
$directory: "npm:@fontsource/arimo/files"
|
||||
$family: "Arimo",
|
||||
$directory: "npm:@fontsource-variable/arimo/files"
|
||||
);
|
||||
|
||||
// Hack *does* come with its own CSS, but it's broken and hasn't seen
|
||||
// a release since https://github.com/source-foundry/Hack/issues/467
|
||||
// was resolved.
|
||||
|
||||
$variants: regular 400 normal, bold 700 normal, italic 400 italic,
|
||||
bolditalic 700 italic;
|
||||
$variants: regular normal, bold normal, italic italic, bolditalic italic;
|
||||
|
||||
@each $name, $weight, $style in $variants {
|
||||
@each $name, $style in $variants {
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("npm:hack-font/build/web/fonts/hack-#{$name}-subset.woff2?sha=3114f1256")
|
||||
format("woff2"),
|
||||
url("npm:hack-font/build/web/fonts/hack-#{$name}-subset.woff?sha=3114f1256")
|
||||
format("woff");
|
||||
font-weight: $weight;
|
||||
font-style: $style;
|
||||
font-display: auto;
|
||||
font-weight: 400 700;
|
||||
src: url("npm:hack-font/build/web/fonts/hack-#{$name}-subset.woff2") format("woff2-variations");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,17 +5,17 @@
|
|||
font-family: Arimo;
|
||||
|
||||
&:hover {
|
||||
background-color: $dark !important;
|
||||
color: $white !important;
|
||||
// background-color: $dark !important;
|
||||
// color: $white !important;
|
||||
}
|
||||
}
|
||||
|
||||
& .navbar-start > .navbar-item {
|
||||
color: rgba($white, 0.75);
|
||||
// color: rgba($white, 0.75);
|
||||
|
||||
&:hover {
|
||||
background-color: $dark !important;
|
||||
color: $white !important;
|
||||
// background-color: $dark !important;
|
||||
// color: $white !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
$fa-font-path: "npm:@fortawesome/fontawesome-free/webfonts";
|
||||
@use "npm:@fortawesome/fontawesome-free/scss/_variables.scss" with (
|
||||
$font-path: "npm:@fortawesome/fontawesome-free/webfonts",
|
||||
);
|
||||
|
||||
@import "~/node_modules/@fortawesome/fontawesome-free/scss/fontawesome";
|
||||
@import "~/node_modules/@fortawesome/fontawesome-free/scss/solid";
|
||||
@use "npm:@fortawesome/fontawesome-free/scss/fontawesome";
|
||||
@use "npm:@fortawesome/fontawesome-free/scss/solid";
|
||||
|
||||
.is-border-box {
|
||||
box-sizing: border-box !important;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue