Skip to content

Commit 539e80d

Browse files
committed
Initial commit
0 parents  commit 539e80d

Some content is hidden

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

44 files changed

+7972
-0
lines changed

.gitattributes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Enforce Unix newlines
2+
* text=lf
3+
4+
# Exclude unused files
5+
# see: https://redd.it/2jzp6k
6+
/assets/src export-ignore
7+
/assets/.eslintrc.cjs export-ignore
8+
/assets/.prettierrc export-ignore
9+
/assets/.stylelintrc.json export-ignore
10+
/assets/package.json export-ignore
11+
/assets/package-lock.json export-ignore
12+
/assets/tsconfig.json export-ignore
13+
/assets/tsconfig.node.json export-ignore
14+
/assets/vite.config.ts export-ignore
15+
/.gitattributes export-ignore
16+
/.gitignore export-ignore

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/assets/auto-imports.d.ts
2+
/assets/components.d.ts
3+
/assets/node_modules

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Sterc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Sterc Content Security Policy
2+
---
3+
4+
### How to use
5+
6+
This is unusual extra that should be installed into MODX 3 **with composer** to resolve potential dependency conflicts.
7+
8+
If you use MODX without `composer.json`, you need to [download this file from official MODX repository][1] into the
9+
root of your project and run `composer update`.
10+
11+
### Install
12+
13+
Just run
14+
```
15+
composer require sterc/csp --with-all-dependencies
16+
```
17+
18+
Then you need to add installed package into MODX with shipped console script
19+
```
20+
composer exec sterc-csp install
21+
```
22+
23+
This will run database migrations and register everything needed.
24+
25+
### Remove
26+
27+
Almost the same commands but in reversed order:
28+
```
29+
composer exec sterc-csp remove
30+
composer remove sterc/csp
31+
```
32+
33+
Custom tables will be deleted along with all other package entities.
34+
35+
[1]: https://github.com/modxcms/revolution/blob/3.x/package.json

assets/.eslintrc.cjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true,
6+
},
7+
parser: 'vue-eslint-parser',
8+
parserOptions: {
9+
parser: '@typescript-eslint/parser',
10+
},
11+
extends: ['@nuxtjs/eslint-config-typescript', 'plugin:prettier/recommended'],
12+
plugins: ['prettier'],
13+
rules: {
14+
'vue/multi-word-component-names': 0,
15+
'no-console': 0,
16+
// 'no-new': 0,
17+
'vue/no-v-html': 0,
18+
},
19+
}

assets/.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 120,
3+
"semi": false,
4+
"arrowParens": "always",
5+
"singleQuote": true,
6+
"trailingComma": "all",
7+
"bracketSpacing": false
8+
}

assets/.stylelintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "stylelint-config-standard-scss",
3+
"rules": {
4+
"no-invalid-position-at-import-rule": 0,
5+
"scss/at-import-partial-extension": 0
6+
}
7+
}

assets/dist/assets/main-f6864d5b.js

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

assets/dist/assets/main-fbe2bd5e.css

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

assets/dist/manifest.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"src/main.css": {
3+
"file": "assets/main-fbe2bd5e.css",
4+
"src": "src/main.css"
5+
},
6+
"src/main.ts": {
7+
"css": [
8+
"assets/main-fbe2bd5e.css"
9+
],
10+
"file": "assets/main-f6864d5b.js",
11+
"isEntry": true,
12+
"src": "src/main.ts"
13+
}
14+
}

0 commit comments

Comments
 (0)