Skip to content

Commit eda2494

Browse files
committed
API Switch frontend assets to using silverstripe-webpack module
1 parent 76c5b75 commit eda2494

File tree

195 files changed

+15680
-186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+15680
-186
lines changed

.eslintrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "airbnb",
3+
"rules": {
4+
"init-declarations": 1
5+
}
6+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

.sass-lint.yml

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# sass-lint config to match the AirBNB style guide
2+
# See silverstripe-admin
3+
files:
4+
include: '**/client/src/**/*.scss'
5+
ignore:
6+
- 'client/src/styles/legacy/*'
7+
- 'src/**/*'
8+
options:
9+
formatter: stylish
10+
merge-default-rules: false
11+
rules:
12+
# Warnings
13+
# Things that require actual refactoring are marked as warnings
14+
class-name-format:
15+
- 1
16+
- convention: hyphenatedbem
17+
placeholder-name-format:
18+
- 1
19+
- convention: hyphenatedlowercase
20+
nesting-depth:
21+
- 1
22+
- max-depth: 3
23+
no-ids: 1
24+
no-important: 1
25+
no-misspelled-properties:
26+
- 1
27+
- extra-properties:
28+
- "-moz-border-radius-topleft"
29+
- "-moz-border-radius-topright"
30+
- "-moz-border-radius-bottomleft"
31+
- "-moz-border-radius-bottomright"
32+
variable-name-format:
33+
- 1
34+
- allow-leading-underscore: true
35+
convention: hyphenatedlowercase
36+
no-extends: 1
37+
38+
# Warnings: these things are preferential rather than mandatory
39+
no-css-comments: 1
40+
41+
# Errors
42+
# Things that can be easily fixed are marked as errors
43+
indentation:
44+
- 2
45+
- size: 2
46+
final-newline:
47+
- 2
48+
- include: true
49+
no-trailing-whitespace: 2
50+
border-zero:
51+
- 2
52+
- convention: '0'
53+
brace-style:
54+
- 2
55+
- allow-single-line: true
56+
clean-import-paths:
57+
- 2
58+
- filename-extension: false
59+
leading-underscore: false
60+
no-debug: 2
61+
no-empty-rulesets: 2
62+
no-invalid-hex: 2
63+
no-mergeable-selectors: 2
64+
# no-qualifying-elements:
65+
# - 1
66+
# - allow-element-with-attribute: false
67+
# allow-element-with-class: false
68+
# allow-element-with-id: false
69+
no-trailing-zero: 2
70+
no-url-protocols: 2
71+
quotes:
72+
- 2
73+
- style: double
74+
space-after-bang:
75+
- 2
76+
- include: false
77+
space-after-colon:
78+
- 2
79+
- include: true
80+
space-after-comma:
81+
- 2
82+
- include: true
83+
space-before-bang:
84+
- 2
85+
- include: true
86+
space-before-brace:
87+
- 2
88+
- include: true
89+
space-before-colon: 2
90+
space-between-parens:
91+
- 2
92+
- include: false
93+
trailing-semicolon: 2
94+
url-quotes: 2
95+
zero-unit: 2
96+
single-line-per-selector: 2
97+
one-declaration-per-line: 2
98+
empty-line-between-blocks:
99+
- 2
100+
- ignore-single-line-rulesets: true

.tx/config

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source_lang = en
88
type = YML
99

1010
[silverstripe-advancedworkflow.master-js]
11-
file_filter = javascript/lang/src/<lang>.js
12-
source_file = javascript/lang/src/en.js
11+
file_filter = client/lang/src/<lang>.js
12+
source_file = client/lang/src/en.js
1313
source_lang = en
14-
type = KEYVALUEJSON
14+
type = KEYVALUEJSON

_config/workflowconfig.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest:
1212
- Symbiote\AdvancedWorkflow\Extensions\AdvancedWorkflowExtension
1313
SilverStripe\Admin\LeftAndMain:
1414
extra_requirements_css:
15-
- advancedworkflow/css/AdvancedWorkflowAdmin.css
15+
- advancedworkflow/client/dist/styles/advancedworkflow.css

0 commit comments

Comments
 (0)