gaiety / test_cleanup.exs
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 9 months ago
| 1 | describe "my awesome testing describe" do |
| 2 | setup do |
| 3 | starting_value = Application.get_env(:cool, :beans) |
| 4 | |
| 5 | on_exit(fn -> |
| 6 | Application.put_env(:cool, :beans, starting_value) |
| 7 | end) |
| 8 | end |
| 9 | end |
gaiety / Phoenix (Elixir) + LitElement + TailwindCSS
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1 year ago
Inline import the compiled TailwindCSS and Phoenix LiveView ViewHook and make it available to components
| 1 | import {LitElement, unsafeCSS} from 'lit' |
| 2 | import type {ViewHook} from 'phoenix_live_view' |
| 3 | import styles from '../../../priv/static/assets/app.css?inline' |
| 4 | |
| 5 | declare global { |
| 6 | interface HTMLElement { |
| 7 | LitLiveHook?: ViewHook |
| 8 | } |
| 9 | } |
Новее
Позже