-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Upgrade deps, add storybook #4947
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6028d88
Add `<.dropdown_item>`
ukutaht e6747d9
Make the ellipsis menu functional again
ukutaht 07e50e2
Upgrade deps so that storybook can be added
ukutaht 33ac912
Add storybook and dropdown story
ukutaht 8ae1635
Remove lingering warnings/errors
ukutaht b727295
Add color mode to storybook
ukutaht 2ce636c
Use new liveview used_input? function
ukutaht 2144450
Alpine improvements
ukutaht 8b6ff84
Add select input to storybook
ukutaht eaa647f
Bring back `render_form` for CRM
ukutaht 4b89064
Configure eslint so it can see deps
ukutaht 38653a5
Remove LiveViewTest patch
ukutaht fca184d
Fix test for phoenix liveview 1.0
ukutaht daec0f5
Build assets in prod
ukutaht 731238d
Fix tests
ukutaht ab45447
Attempt to fix lint error
ukutaht 27f36f5
Add explicit text color to input
ukutaht eb2dd70
mix format
ukutaht 19f4aca
Format after merge master
ukutaht ce4c587
Add moduledocs
ukutaht db943bc
Only run storybook in production
ukutaht 6f5df63
Update storybook dependency
ukutaht ab697ad
Mix format
ukutaht File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@import "tailwindcss/base"; | ||
@import "tailwindcss/components"; | ||
@import "tailwindcss/utilities"; | ||
|
||
/* | ||
* Put your component styling within the Tailwind utilities layer. | ||
* See the https://hexdocs.pm/phoenix_storybook/sandboxing.html guide for more info. | ||
*/ | ||
|
||
@layer utilities { | ||
* { | ||
font-family: system-ui; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import Alpine from 'alpinejs' | ||
import dropdown from "./liveview/dropdown" | ||
|
||
// If your components require any hooks or custom uploaders, or if your pages | ||
// require connect parameters, uncomment the following lines and declare them as | ||
// such: | ||
// | ||
// import * as Hooks from "./hooks"; | ||
// import * as Params from "./params"; | ||
// import * as Uploaders from "./uploaders"; | ||
|
||
// (function () { | ||
// window.storybook = { Hooks, Params, Uploaders }; | ||
// })(); | ||
|
||
|
||
window.Alpine = Alpine | ||
document.addEventListener('DOMContentLoaded', () => { | ||
window.Alpine.start(); | ||
}); | ||
|
||
document.addEventListener('alpine:init', () => { | ||
window.Alpine.data('dropdown', dropdown) | ||
}); | ||
|
||
|
||
(function () { | ||
window.storybook = { | ||
LiveSocketOptions: { | ||
dom: { | ||
onBeforeElUpdated(from, to) { | ||
if (from._x_dataStack) { | ||
window.Alpine.clone(from, to) | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
})(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should have been removed when we moved to esbuild. Modern phoenix config wants these JS packages to be resolved via mix
../deps
folder but our package.json was actually shadowing the same deps in./node_modules
.By removing from node_modules we have less config and guaranteed that the frontend package has the same version as the backend one.