Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Apr 24, 2024
1 parent 0c5ca2d commit 34735fc
Show file tree
Hide file tree
Showing 23 changed files with 2,267 additions and 2,115 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"singleQuote": true,
"arrowParens": "avoid",
"useTabs": true,
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"importOrder": ["<THIRD_PARTY_MODULES>", "^[./]"],
"importOrderSeparation": true,
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default tseslint.config(
eslintConfigPrettier,
{
rules: {
'@typescript-eslint/no-unused-vars': "warn"
'@typescript-eslint/no-unused-vars': "warn",
"@typescript-eslint/no-explicit-any": "warn"
}
}
);
20 changes: 10 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 49 additions & 63 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,89 +2,75 @@
description = "Template for Holochain app development";

inputs = {
versions.url = "github:holochain/holochain/holochain-0.3.0-beta-dev.46?dir=versions/weekly";
versions.url =
"github:holochain/holochain/73e231beb85507ea0858eb914ac00f9538c23b15?dir=versions/weekly";

holochain.url = "github:holochain/holochain";
holochain.inputs.versions.follows = "versions";

nixpkgs.follows = "holochain/nixpkgs";
flake-parts.follows = "holochain/flake-parts";

hc-infra = {
url = "github:holochain-open-dev/infrastructure";
};
scaffolding = {
url = "github:holochain-open-dev/templates";
};
hc-infra = { url = "github:holochain-open-dev/infrastructure"; };
scaffolding = { url = "github:holochain-open-dev/templates"; };

profiles.url = "github:holochain-open-dev/profiles/nixify";
};

nixConfig = {
extra-substituters = [
"https://holochain-open-dev.cachix.org"
"https://darksoil-studio.cachix.org"
];
extra-trusted-public-keys = [
"holochain-open-dev.cachix.org-1:3Tr+9in6uo44Ga7qiuRIfOTFXog+2+YbyhwI/Z6Cp4U="
];
extra-trusted-public-keys = [
"holochain-open-dev.cachix.org-1:3Tr+9in6uo44Ga7qiuRIfOTFXog+2+YbyhwI/Z6Cp4U="
"darksoil-studio.cachix.org-1:UEi+aujy44s41XL/pscLw37KEVpTEIn8N/kn7jO8rkc="
];
};


outputs = inputs:
inputs.flake-parts.lib.mkFlake
{
inherit inputs;
specialArgs = {
# Special arguments for the flake parts of this repository

rootPath = ./.;
};
}
{
imports = [
./zomes/integrity/notifications/zome.nix
./zomes/coordinator/notifications/zome.nix
# Just for testing purposes
./workdir/dna.nix
./workdir/happ.nix
];

systems = builtins.attrNames inputs.holochain.devShells;
perSystem =
{ inputs'
, config
, pkgs
, system
, ...
}: {
devShells.default = pkgs.mkShell {
inputsFrom = [
inputs'.hc-infra.devShells.synchronized-pnpm
inputs'.holochain.devShells.holonix
];
inputs.flake-parts.lib.mkFlake {
inherit inputs;
specialArgs = {
# Special arguments for the flake parts of this repository

packages = [
inputs'.scaffolding.packages.hc-scaffold-zome-template
];
};
rootPath = ./.;
};
} {
imports = [
./zomes/integrity/notifications/zome.nix
./zomes/coordinator/notifications/zome.nix
# Just for testing purposes
./workdir/dna.nix
./workdir/happ.nix
];

systems = builtins.attrNames inputs.holochain.devShells;
perSystem = { inputs', config, pkgs, system, ... }: {
devShells.default = pkgs.mkShell {
inputsFrom = [
inputs'.hc-infra.devShells.synchronized-pnpm
inputs'.holochain.devShells.holonix
];

packages = [ inputs'.scaffolding.packages.hc-scaffold-zome-template ];
};

packages.scaffold = pkgs.symlinkJoin {
name = "scaffold-remote-zome";
paths = [ inputs'.hc-infra.packages.scaffold-remote-zome ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/scaffold-remote-zome \
--add-flags "notifications \
--integrity-zome-name notifications_integrity \
--coordinator-zome-name notifications \
--remote-zome-git-url github:darksoil-studio/notifications \
--remote-npm-package-name notifications \
--remote-npm-package-path ui" \
# --remote-zome-git-branch main
'';
};
};
packages.scaffold = pkgs.symlinkJoin {
name = "scaffold-remote-zome";
paths = [ inputs'.hc-infra.packages.scaffold-remote-zome ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/scaffold-remote-zome \
--add-flags "notifications \
--integrity-zome-name notifications_integrity \
--coordinator-zome-name notifications \
--remote-zome-git-url github:darksoil-studio/notifications \
--remote-npm-package-name notifications \
--remote-npm-package-path ui" \
# --remote-zome-git-branch main
'';
};
};
};
}
2 changes: 2 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

hard_tabs = true
4 changes: 2 additions & 2 deletions ui/src/context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createContext } from '@lit/context';

import { NotificationsStore } from './notifications-store.js';

export const notificationsStoreContext = createContext<NotificationsStore>(
'notifications/store'
'notifications/store',
);

Loading

0 comments on commit 34735fc

Please sign in to comment.