forked from cory/tildefriends
Compare commits
1 Commits
f0772f9b99
...
tasiaiso-s
Author | SHA1 | Date | |
---|---|---|---|
773396ac85
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,4 +8,3 @@ out
|
|||||||
*.swo
|
*.swo
|
||||||
*.swp
|
*.swp
|
||||||
.zsign_cache/
|
.zsign_cache/
|
||||||
result
|
|
||||||
|
@ -340,6 +340,13 @@ class TfElement extends LitElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let tabs = html`
|
let tabs = html`
|
||||||
|
<style>
|
||||||
|
@media only screen and (max-width: 650px) {
|
||||||
|
.hide-on-small-screens {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<div class="w3-bar w3-theme-l1">
|
<div class="w3-bar w3-theme-l1">
|
||||||
${Object.entries(k_tabs).map(
|
${Object.entries(k_tabs).map(
|
||||||
([k, v]) => html`
|
([k, v]) => html`
|
||||||
@ -352,6 +359,7 @@ class TfElement extends LitElement {
|
|||||||
@click=${() => self.set_tab(v)}
|
@click=${() => self.set_tab(v)}
|
||||||
>
|
>
|
||||||
${k}
|
${k}
|
||||||
|
<span class="hide-on-small-screens">${v}</span>
|
||||||
</button>
|
</button>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
|
48
default.nix
48
default.nix
@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs ? import <nixpkgs> {},
|
|
||||||
lib ? import <nixpkgs/lib>,
|
|
||||||
}:
|
|
||||||
pkgs.stdenv.mkDerivation rec {
|
|
||||||
pname = "tildefriends";
|
|
||||||
version = "0.0.19";
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitea {
|
|
||||||
domain = "dev.tildefriends.net";
|
|
||||||
owner = "cory";
|
|
||||||
repo = "tildefriends";
|
|
||||||
# rev = "v${version}";
|
|
||||||
rev = "47838d5e482cb4aac40190fa0414f08b8cf94d40";
|
|
||||||
hash = "sha256-mb5KYvWPIqgV64FOaXKHm2ownBJiiSRtdH8+YWiXwvE="; # 47838d5e482cb4aac40190fa0414f08b8cf94d40
|
|
||||||
fetchSubmodules = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
gnumake
|
|
||||||
openssl
|
|
||||||
which
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
openssl
|
|
||||||
which
|
|
||||||
];
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
make -j $NIX_BUILD_CORES release
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp -r out/release/tildefriends $out/bin
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with pkgs; {
|
|
||||||
homepage = "https://tildefriends.net";
|
|
||||||
description = "Make apps and friends from the comfort of your web browser.";
|
|
||||||
mainProgram = "tildefriends";
|
|
||||||
license = with lib.licenses; [mit];
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
61
flake.lock
generated
61
flake.lock
generated
@ -1,61 +0,0 @@
|
|||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1715395895,
|
|
||||||
"narHash": "sha256-DreMqi6+qa21ffLQqhMQL2XRUkAGt3N7iVB5FhJKie4=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "71bae31b7dbc335528ca7e96f479ec93462323ff",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-23.11",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
36
flake.nix
36
flake.nix
@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
description = "Tilde Friends is a platform for making, running, and sharing web applications";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = {
|
|
||||||
self,
|
|
||||||
nixpkgs,
|
|
||||||
flake-utils,
|
|
||||||
}:
|
|
||||||
flake-utils.lib.eachDefaultSystem (system: let
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
};
|
|
||||||
in rec
|
|
||||||
{
|
|
||||||
# Nix formatter, run using `$ nix fmt`
|
|
||||||
formatter = pkgs.alejandra;
|
|
||||||
|
|
||||||
# Exports the tildefriends package
|
|
||||||
packages.default = pkgs.callPackage ./default.nix {};
|
|
||||||
|
|
||||||
# Creates a shell with the necessary dependencies
|
|
||||||
# Enter using `$ nix develop`
|
|
||||||
devShell = pkgs.mkShell {
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
openssl
|
|
||||||
llvmPackages_17.clang-unwrapped
|
|
||||||
unzip
|
|
||||||
];
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
Reference in New Issue
Block a user