Skip to content

Commit

Permalink
use rc version in liveview
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Sep 18, 2024
1 parent 231be28 commit 189cf81
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 31 deletions.
4 changes: 2 additions & 2 deletions core/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ import "@getcanary/web/components/canary-provider-cloud.js";
import "@getcanary/web/components/canary-modal.js";
import "@getcanary/web/components/canary-trigger-searchbar.js";
import "@getcanary/web/components/canary-content.js";
import "@getcanary/web/components/canary-input.js";
import "@getcanary/web/components/canary-search.js";
import "@getcanary/web/components/canary-search-input.js";
import "@getcanary/web/components/canary-search-results.js";
import "@getcanary/web/components/canary-ask.js";
import "@getcanary/web/components/canary-ask-input.js";
import "@getcanary/web/components/canary-ask-results.js";
import "@getcanary/web/components/canary-mode-breadcrumb.js";
import "@getcanary/web/components/canary-search-suggestions.js";
import "@getcanary/web/components/canary-search-empty.js"

let csrfToken = document
.querySelector("meta[name='csrf-token']")
Expand Down
41 changes: 21 additions & 20 deletions core/assets/package-lock.json

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

2 changes: 1 addition & 1 deletion core/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"typescript": "^5.4.5"
},
"dependencies": {
"@getcanary/web": "^0.0.106",
"@getcanary/web": "^1.0.0-rc.0",
"chart.js": "^4.4.4",
"clipboard": "^2.0.11",
"clsx": "^2.1.1",
Expand Down
13 changes: 5 additions & 8 deletions core/lib/canary_web/live/home_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@ defmodule CanaryWeb.HomeLive do
}
>
<canary-content>
<canary-input slot="input"></canary-input>
<canary-search slot="mode">
<canary-search-input slot="input" autofocus></canary-search-input>
<canary-search-suggestions slot="body" header="Ask AI"></canary-search-suggestions>
<canary-search-results slot="body" header="Results" group></canary-search-results>
<canary-search-suggestions slot="body"></canary-search-suggestions>
<canary-search-results group slot="body"></canary-search-results>
<canary-search-empty slot="body"></canary-search-empty>
</canary-search>
<canary-ask slot="mode">
<canary-mode-breadcrumb slot="input-before" text="Ask AI"></canary-mode-breadcrumb>
<canary-ask-input slot="input"></canary-ask-input>
<canary-ask-results slot="body"></canary-ask-results>
</canary-ask>
</canary-content>
</canary-provider-cloud>
</canary-root>
Expand Down

0 comments on commit 189cf81

Please sign in to comment.