Skip to content

Commit 393b0d1

Browse files
committed
🔥 First setup
0 parents  commit 393b0d1

29 files changed

+11309
-0
lines changed

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const base = require("@mendix/pluggable-widgets-tools/configs/eslint.ts.base.json");
2+
3+
module.exports = {
4+
...base,
5+
rules: {
6+
"@typescript-eslint/ban-ts-comment": "off",
7+
}
8+
};

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.ts text eol=lf
7+
*.tsx text eol=lf
8+
*.js text eol=lf
9+
*.jsx text eol=lf
10+
*.css text eol=lf
11+
*.scss text eol=lf
12+
*.json text eol=lf
13+
*.xml text eol=lf
14+
*.md text eol=lf
15+
*.gitattributes eol=lf
16+
*.gitignore eol=lf
17+
18+
# Denote all files that are truly binary and should not be modified.
19+
*.png binary
20+
*.jpg binary
21+
*.gif binary

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
tests/testProject/
2+
.DS_Store
3+
.idea
4+
.vscode
5+
dist
6+
node_modules
7+
.env
8+
*.log
9+
*.bak
10+
*.launch
11+
mxproject
12+
coverage
13+
14+
**/results
15+
mendixProject
16+
**/e2e/diffs
17+
**/screenshot
18+
**/screenshot-results
19+
**/tests/testProject
20+
**/artifacts

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests/testProject/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright © CaffCode 2022. All Rights Reserved.
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
13+
all 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
21+
THE SOFTWARE.

README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Script Loader
2+
3+
![AppStoreIcon](/assets/MarketPlaceIcon.png)
4+
5+
Load scripts in your Mendix page/layout
6+
7+
## Features
8+
9+
- Load javascript files from an external source
10+
- Execute action on load/error
11+
- Execute action when all are loaded
12+
- Load scripts in parallel or sequential order
13+
14+
## Important note
15+
16+
> While you can load external scripts (like we do in out demo), you should be aware that the script might not work, or more importantly: mess with the Mendix runtime in your page.
17+
18+
For example:
19+
- Loading jQuery works fine
20+
- Loading Lodash seems to not work properly. The script loads fine, but when the page tries to load Javascript Actions, it breaks
21+
22+
So, if you have issues with your Mendix application when you are using the Script Loader widget, check if any of the loaded scripts interfere with the app itself.
23+
24+
## Usage
25+
26+
Import the Script Loader widget in your page (or preferably, your layout), set the different options (should be intuitive) and let it run.
27+
28+
![screenshot](/assets/screenshot_general.png)
29+
![screenshot](/assets/screenshot_script.png)
30+
![screenshot](/assets/screenshot_actions.png)
31+
32+
## Demo project
33+
34+
[Click here](https://caffcodecontenttestapp-sandbox.mxapps.io/p/script-loader-home)
35+
36+
## Issues, suggestions and feature requests
37+
38+
You can find all the information on [Github](https://github.com/j3lte/mendix-script-loader)
39+
40+
## License
41+
42+
The MIT License (MIT)
43+
44+
Copyright © CaffCode 2022. All Rights Reserved.
45+
46+
Permission is hereby granted, free of charge, to any person obtaining a copy
47+
of this software and associated documentation files (the "Software"), to deal
48+
in the Software without restriction, including without limitation the rights
49+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
50+
copies of the Software, and to permit persons to whom the Software is
51+
furnished to do so, subject to the following conditions:
52+
53+
The above copyright notice and this permission notice shall be included in
54+
all copies or substantial portions of the Software.
55+
56+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
57+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
58+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
59+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
60+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
61+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
62+
THE SOFTWARE.

assets/MarketPlaceIcon.png

56.1 KB
Loading

assets/screenshot_actions.png

109 KB
Loading

assets/screenshot_general.png

155 KB
Loading

assets/screenshot_script.png

44.3 KB
Loading

0 commit comments

Comments
 (0)