Skip to content

Commit

Permalink
Fixes to the template
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jun 13, 2024
1 parent a812fa3 commit 44be3de
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
- name: {{zome_manifest.name}}_integrity
dylib: ~
'';
zomes = inputs.hc-infra.outputs.lib.filterZomes self'.packages;
zomes = {
{{zome_manifest.name}}_integrity = self'.packages.{{zome_manifest.name}}_integrity;
{{zome_manifest.name}} = packages.{{zome_manifest.name}};
};
holochain = inputs'.holochain;
});
crateCargoToml = ./Cargo.toml;
Expand Down
2 changes: 1 addition & 1 deletion templates/app/web-app/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"package": "nix build -L .#{{app_name}}.meta.release -o workdir/{{app_name}}.happ && pnpm -F ui package && hc web-app pack workdir"
},
"devDependencies": {
"@holochain-playground/cli": "^0.1.1",
"@holochain-playground/cli": "^0.300.0-rc",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@eslint/js": "^8.0.0",
"concurrently": "^6.2.1",
Expand Down
20 changes: 4 additions & 16 deletions templates/app/web-app/ui/src/holochain-app.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import '@holochain-open-dev/profiles/dist/elements/my-profile.js';
import '@shoelace-style/shoelace/dist/components/spinner/spinner.js';
import '@shoelace-style/shoelace/dist/components/icon-button/icon-button.js';

import { rootRouterContext } from './context.ts';
import { rootRouterContext } from './context.js';
import { appStyles } from './app-styles.js';
import './home-page.ts';

Expand Down Expand Up @@ -109,21 +109,9 @@ export class HolochainApp extends SignalWatcher(LitElement) {
`;

return html`
<div class="column fill">
<div
class="row"
style="align-items: center; color:white; background-color: var(--sl-color-primary-900); padding: 16px"
>
${this.renderBackButton()}
<span class="title" style="flex: 1">${msg("{{title_case app_name}}")}</span>

${this.renderMyProfile()}
</div>

<profile-prompt style="flex: 1;">
${this.router.outlet()}
</profile-prompt>
</div>
<profile-prompt style="flex: 1;">
${this.router.outlet()}
</profile-prompt>
`;
}

Expand Down
2 changes: 1 addition & 1 deletion templates/zome/web-app/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build:happ": "nix build -L .#{{snake_case app_name}}_test_app -o workdir/{{app_name}}_test.happ"
},
"devDependencies": {
"@holochain-playground/cli": "^0.1.1",
"@holochain-playground/cli": "^0.300.0-rc",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@eslint/js": "^8.0.0",
"concurrently": "^6.2.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
, system
, self'
, ...
}: {
}: rec {
packages.{{snake_case app_name}} = inputs.hc-infra.outputs.lib.rustZome {
workspacePath = inputs.self.outPath;
holochain = inputs'.holochain;
Expand Down Expand Up @@ -38,7 +38,10 @@
- name: {{snake_case app_name}}_integrity
dylib: ~
'';
zomes = inputs.hc-infra.outputs.lib.filterZomes self'.packages;
zomes = {
{{snake_case app_name}}_integrity = self'.packages.{{snake_case app_name}}_integrity;
{{snake_case app_name}} = packages.{{snake_case app_name}};
};
holochain = inputs'.holochain;
});
crateCargoToml = ./Cargo.toml;
Expand Down

0 comments on commit 44be3de

Please sign in to comment.