Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/theme handling #109

Merged
merged 13 commits into from
Aug 12, 2023
Prev Previous commit
Next Next commit
Build assets
  • Loading branch information
ArthurClemens committed Aug 12, 2023
commit ab384cfc9a73f2849e0cc8ae41ed63170d18db75
1 change: 0 additions & 1 deletion priv/static/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './theme';
export * from './prompt';
16 changes: 1 addition & 15 deletions priv/static/primer-live.cjs.js

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

6 changes: 3 additions & 3 deletions priv/static/primer-live.cjs.js.map

Large diffs are not rendered by default.

16 changes: 1 addition & 15 deletions priv/static/primer-live.esm.js

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

6 changes: 3 additions & 3 deletions priv/static/primer-live.esm.js.map

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions priv/static/primer-live.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
"use strict";
(() => {
// js/theme.ts
var Theme = {
mounted() {
window.addEventListener(
"phx:pl-session",
(e) => fetch(`/api/pl-session?payload=${JSON.stringify(e.detail)}`, {
method: "post"
})
);
}
};
window.Theme = Theme;

// js/prompt.ts
var ROOT_SELECTOR = "[data-prompt]";
var WRAPPER_SELECTOR = "[data-prompt-content]";
Expand Down
2 changes: 1 addition & 1 deletion priv/static/primer-live.min.js

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