polaris_view_components 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5ea3551cd4f15d29b3618b2cc565059b91f9415c2b3e2ff47573c9d8eebc588
|
4
|
+
data.tar.gz: bd815ab2b3bd738e7541686b8047cf159638e2aec83ab02d4dd7e803ff455d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 161b1fc626ca532956a4cd600dfcfd24d02e4c833e2622f7467fd0f3e526de317c321270c785b513cca0740c2660ed699e3893e9748c06a172330ef00d0ca35d
|
7
|
+
data.tar.gz: e93f7fa5dff2007c34163999e6630ebb77107dc13f1ded4032c09df947b6664c3a61befa7f06e20dc85099060c86ad3bb3a0d5970acd599305ce85789a53b7b7
|
data/README.md
CHANGED
@@ -36,7 +36,6 @@ rails generate polaris_view_components:install
|
|
36
36
|
Setup Polaris styles in your layouts `<head>` tag:
|
37
37
|
|
38
38
|
```erb
|
39
|
-
<link rel="stylesheet" href="https://unpkg.com/@shopify/polaris@6.6.0/dist/styles.css" />
|
40
39
|
<%= stylesheet_link_tag 'polaris_view_components' %>
|
41
40
|
```
|
42
41
|
|
@@ -54,6 +53,14 @@ Add to `config/importmap.rb`:
|
|
54
53
|
pin "polaris-view-components", to: "polaris_view_components.js"
|
55
54
|
```
|
56
55
|
|
56
|
+
Add to `app/javascript/controllers/index.js`:
|
57
|
+
```javascript
|
58
|
+
// ...
|
59
|
+
|
60
|
+
import { registerPolarisControllers } from "polaris-view-components"
|
61
|
+
registerPolarisControllers(Stimulus)
|
62
|
+
```
|
63
|
+
|
57
64
|
### NPM
|
58
65
|
|
59
66
|
Install NPM package:
|
@@ -63,7 +70,8 @@ yarn add polaris-view-components
|
|
63
70
|
|
64
71
|
Add to `app/javascript/controllers/index.js`:
|
65
72
|
```javascript
|
66
|
-
//
|
73
|
+
// ...
|
74
|
+
|
67
75
|
import { registerPolarisControllers } from "polaris-view-components"
|
68
76
|
registerPolarisControllers(Stimulus)
|
69
77
|
```
|