Skip to content

Commit de4e67e

Browse files
load uppy styles from jsdelivr
1 parent 46fdaea commit de4e67e

File tree

8 files changed

+36
-18
lines changed

8 files changed

+36
-18
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
plutonium (0.18.0)
4+
plutonium (0.18.1)
55
action_policy (~> 0.7.0)
66
dry-initializer (~> 3.1)
77
listen (~> 3.8)

app/assets/plutonium.css

Lines changed: 1 addition & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/generators/pu/core/assets/assets_generator.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ def copy_tailwind_config
2929
end
3030

3131
def install_dependencies
32-
run "yarn add @radioactive-labs/plutonium @tailwindcss/forms @tailwindcss/typography flowbite-typography postcss-cli cssnano marked"
32+
[
33+
"@radioactive-labs/plutonium",
34+
"@tailwindcss/forms", "@tailwindcss/typography", "flowbite-typography",
35+
"postcss-cli", "cssnano marked"
36+
].each do |package|
37+
run "yarn add #{package}"
38+
end
3339
end
3440

3541
def configure_application

lib/plutonium/ui/layout/base.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,29 @@ def render_external_styles
138138
integrity: "sha384-oE0RVGDyNw9goP8V3wYWC9+3GYojVc/LhhKmLT9J5k+L+oGHPa1gRF3FomvOCOFs",
139139
crossorigin: "anonymous"
140140
)
141+
link(
142+
rel: "stylesheet",
143+
href: "https://cdn.jsdelivr.net/npm/@uppy/core@4.3.1/dist/style.min.css",
144+
integrity:
145+
"sha384-duO7yazRrDcRaU8fsOcR3nRyiE7zYi14hncnPBJwqwtTNIaOSMoedatlLJgOcuWC",
146+
crossorigin: "anonymous"
147+
)
148+
link(
149+
rel: "stylesheet",
150+
href:
151+
"https://cdn.jsdelivr.net/npm/@uppy/dashboard@4.1.3/dist/style.min.css",
152+
integrity:
153+
"sha384-zhtN/7sNIm7zP9ccJ0oz4Bhoe1iy2gZM9y37fMgGqWDSY5AIeGoPzAfnqbW6bYII",
154+
crossorigin: "anonymous"
155+
)
156+
link(
157+
rel: "stylesheet",
158+
href:
159+
"https://cdn.jsdelivr.net/npm/@uppy/image-editor@3.2.1/dist/style.min.css",
160+
integrity:
161+
"sha384-Wk0+fOnKCX5R8Clls7c6jbYFLDZe43o6j9HFR9AUmOrc+TQZH6B4DFnXhvwhNPyG",
162+
crossorigin: "anonymous"
163+
)
141164
end
142165

143166
def render_scripts

lib/plutonium/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Plutonium
2-
VERSION = "0.18.0"
2+
VERSION = "0.18.1"
33
NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
44
v[1] = v[1].to_i + 1
55
v[2] = 0

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@radioactive-labs/plutonium",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Core assets for the Plutonium gem",
55
"type": "module",
66
"main": "src/js/core.js",

src/css/plutonium.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
@import "core.css";
22
@import "easymde.css";
33
@import "slim_select.css";
4-
@import "@uppy/core/dist/style.min";
5-
@import "@uppy/dashboard/dist/style.min";
6-
@import "@uppy/image-editor/dist/style.min";
74

85
@tailwind base;
96
@tailwind components;

0 commit comments

Comments
 (0)