Skip to content

Commit 53f3391

Browse files
authored
Merge pull request #9 from djthorpe/dev
Web Components v2
2 parents e3a831b + ad15e4a commit 53f3391

File tree

100 files changed

+2879
-10407
lines changed

Some content is hidden

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

100 files changed

+2879
-10407
lines changed

.github/workflows/docs.yaml

+19-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
name: Publish Docs
22
on:
3+
push:
4+
branches:
5+
- main
36
release:
47
types: [created]
58
jobs:
69
docs:
710
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
813
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Setup Node
17+
uses: actions/setup-node@v4
1118
with:
12-
node-version: '12.x'
19+
node-version: 'latest'
1320
registry-url: 'https://npm.pkg.github.com'
1421
scope: '@djthorpe'
15-
- run: npm install
16-
- run: npm run docs
17-
- uses: LuisEnMarroquin/gh-pages-publish@v2.4.4
22+
23+
- name: Generate Documentatin
24+
run: |
25+
npm install
26+
npm run docs
27+
28+
- name: Deploy Documentation
29+
uses: JamesIves/github-pages-deploy-action@v4
1830
with:
19-
FOLDER: dist/doc
20-
SSHKEY: ${{ secrets.SSH }}
31+
folder: dist/doc

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ dist
3434
.tern-port
3535
.DS_Store
3636
.apdisk
37+
._*
38+
.DS_Store

.vscode/settings.json

-8
This file was deleted.

README.md

-41
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,2 @@
11
# js-framework
22

3-
This Javascript framework is a pretty traditional Model, View and Controller
4-
implementation which provides the following classes:
5-
6-
* __Controller class__: Subclass this and hook your views and provider events together;
7-
* __Provider class__: To be used to request JSON objects and arrays of objects from an external source;
8-
* __Model class__: subclass this for your JSON models, and separately define the members of your class;
9-
* __View classes__: classes are provided for form, list, button, etc.
10-
11-
It uses [Bootstrap](https://getbootstrap.com/) to implement the underlying user
12-
interface, adding a few components.
13-
14-
## Use
15-
16-
Add the framework as a dependency in your project:
17-
18-
```bash
19-
[bash] echo "@djthorpe:registry=https://npm.pkg.github.com" >> .npmrc
20-
[bash] npm install @djthorpe/js-framework
21-
```
22-
23-
Import assets and create a controller in your JavaScript:
24-
25-
```javascript
26-
const jsframework = require('@djthorpe/js-framework');
27-
28-
// Run application
29-
window.addEventListener('DOMContentLoaded', () => {
30-
const app = jsframework.Controller.New(Controller);
31-
app.main();
32-
});
33-
```
34-
35-
In reality, you would subclass the `Controller` class, and create models, views
36-
and providers within the controller, then use `addEventListener` for each view
37-
and provider to react to events. More informaton is provided in the documentation.
38-
39-
## Reference
40-
41-
The reference is provided in the `dist/doc` folder in the published package, or at
42-
https://djthorpe.github.io/js-framework/
43-

config/jsdoc.config.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"source": {
33
"include": [
4-
"js"
4+
"src"
55
],
66
"exclude": [
77
"node_modules"
@@ -12,8 +12,5 @@
1212
"readme": "./README.md",
1313
"destination": "./dist/doc",
1414
"recurse": true
15-
},
16-
"plugins": [
17-
"./node_modules/@ckeditor/jsdoc-plugins/lib/export-fixer/export-fixer.js"
18-
]
15+
}
1916
}

css/style.css

-103
This file was deleted.

etc/example.json

-12
This file was deleted.

etc/server.yaml

-8
This file was deleted.

html/index.html

-139
This file was deleted.

0 commit comments

Comments
 (0)