generated from CoCreate-app/CoCreate-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c6be67
commit 5053acd
Showing
7 changed files
with
409 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Automated Workflow | ||
"on": | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
about: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Jaid/action-sync-node-meta | ||
uses: jaid/action-sync-node-meta@v1.4.0 | ||
with: | ||
direction: overwrite-github | ||
githubToken: "${{ secrets.GITHUB }}" | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v2 | ||
id: semantic | ||
with: | ||
extra_plugins: | | ||
@semantic-release/changelog | ||
@semantic-release/npm | ||
@semantic-release/git | ||
@semantic-release/github | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" | ||
outputs: | ||
new_release_published: "${{ steps.semantic.outputs.new_release_published }}" | ||
new_release_version: "${{ steps.semantic.outputs.new_release_version }}" | ||
cdn: | ||
runs-on: ubuntu-latest | ||
needs: release | ||
if: needs.release.outputs.new_release_published == 'true' | ||
env: | ||
VERSION: "${{ needs.release.outputs.new_release_version }}" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: setup nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.15.4 | ||
- name: yarn install | ||
run: > | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > | ||
.npmrc | ||
yarn install | ||
- name: yarn build | ||
run: yarn build | ||
- name: upload bundle as version | ||
uses: CoCreate-app/CoCreate-s3@master | ||
with: | ||
aws-key-id: "${{ secrets.AWSACCESSKEYID }}" | ||
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" | ||
bucket: testcrudbucket | ||
source: ./dist | ||
destination: "/test/${{env.VERSION}}" | ||
acl: public-read | ||
- name: upload bundle as latest | ||
uses: CoCreate-app/CoCreate-s3@master | ||
with: | ||
aws-key-id: "${{ secrets.AWSACCESSKEYID }}" | ||
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" | ||
bucket: testcrudbucket | ||
source: ./dist | ||
destination: /test/latest | ||
acl: public-read | ||
invalidations: true | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: update documentation | ||
uses: CoCreate-app/CoCreate-docs@master | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Manual Workflow | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
invalidations: | ||
description: | | ||
If set to 'true', invalidates previous upload. | ||
default: "true" | ||
required: true | ||
|
||
jobs: | ||
cdn: | ||
runs-on: ubuntu-latest | ||
env: | ||
DRY_RUN: ${{ github.event.inputs.dry_run }} | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: setup nodejs | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.15.4 | ||
- name: yarn install | ||
run: > | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > | ||
.npmrc | ||
yarn install | ||
- name: yarn build | ||
run: yarn build | ||
- name: upload latest bundle | ||
uses: CoCreate-app/CoCreate-s3@master | ||
with: | ||
aws-key-id: "${{ secrets.AWSACCESSKEYID }}" | ||
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}" | ||
distributionId: "${{ secrets.DISTRIBUTION_ID }}" | ||
bucket: testcrudbucket | ||
source: ./dist | ||
destination: /test/latest | ||
acl: public-read | ||
invalidations: ${{ github.event.inputs.invalidations }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
module.exports = { | ||
"config": { | ||
"apiKey": "c2b08663-06e3-440c-ef6f-13978b42883a", | ||
"securityKey": "f26baf68-e3a9-45fc-effe-502e47116265", | ||
"organization_Id": "5de0387b12e200ea63204d6c", | ||
"host": "server.cocreate.app:8088" | ||
}, | ||
|
||
"sources": [{ | ||
"path": "./docs/index.html", | ||
"collection": "files", | ||
"document_id": "60145dc49f64ba1680b86693", | ||
"key": "html", | ||
"data": { | ||
"name": "test Doc" | ||
} | ||
}], | ||
|
||
"crud": [{ | ||
"collection": "routes", | ||
"document_id": "", | ||
"data": { | ||
"collection": "files", | ||
"document_id": "", | ||
"name": "html", | ||
"domains": ["cocreate.app", "server.cocreate.app", "ws.cocreate.app"], | ||
"route": "/docs/test" | ||
} | ||
}], | ||
|
||
"extract": { | ||
"directory": "./src/", | ||
"extensions": [ | ||
"js", | ||
"css", | ||
"html" | ||
], | ||
"ignores": [ | ||
"node_modules", | ||
"vendor", | ||
"bower_components", | ||
"archive" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16"> | ||
<title>Industry Form | CoCreate</title> | ||
|
||
<!-- CoCreate CSS --> | ||
<link rel="stylesheet" href="https://server.cocreate.app/css/CoCreate.min.css" type="text/css" /> | ||
|
||
<!-- Font Awesome --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" crossorigin="anonymous" /> | ||
</head> | ||
|
||
<body id="test"> | ||
|
||
<!--<a href="login.html" target="" data-pass_to="me1234" class="redirectLink" style="display: none"></a>--> | ||
<div id="modal-viewport" class="hidden"></div> | ||
<div class="nav display:flex align-items-center bg-light-gray" | ||
data-main_content_id="content" | ||
data-nav_effect="sticky-nav" | ||
data-nav_scroll="200"> | ||
|
||
<ul class="overflow:overlay display:inline-flex direction:rtl font-size:20px align-items-center list-style-type-none width:100% height:50px"> | ||
<li class="margin-right:15px"> | ||
<a class="btn-modal-close"><i class="fas fa-times"></i></a> | ||
</li> | ||
<li class="margin-right:15px"> | ||
<a class="btn-modal-maximize"><i data-transform_to="far fa-window-restore" class="far fa-window-maximize"></i></a> | ||
</li> | ||
<li class="margin-right:15px"> | ||
<a class="btn-modal-minimize"><i class="far fa-window-minimize"></i></a> | ||
</li> | ||
<li class="margin-right:15px"> | ||
<a data-fullscreen><i data-transform_to="fas fa-compress" class="fas fa-expand"></i></a> | ||
</li> | ||
<li class="margin-right:15px"> | ||
<a target="modal" href="render.html" | ||
data-pass_collection="modules" | ||
data-pass_document_id="" | ||
data-pass_prefix="form_" | ||
data-pass_to="builder" | ||
data-modal_width="100%" | ||
data-pass_id="render"> | ||
<i class="fas fa-palette"></i> | ||
<div data-pass_collection="modules" | ||
data-pass_document_id="" | ||
data-pass_prefix="" | ||
data-pass_to="render" | ||
class="sessionBuilderUI_Id"> | ||
</div> | ||
</a> | ||
</li> | ||
<li class="margin-right:15px"> | ||
<a data-collection="modules" | ||
data-document_id="" | ||
data-pass_id="form-fields" | ||
class="delete-document btn-modal-close"> | ||
<i class="far fa-trash-alt"></i> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div data-main_content_id="content"> | ||
|
||
<form> | ||
<input data-sendgrid="cnameRecord"> | ||
<!--<button type="button" id="id-one" data-actions="emailAutenticate, cnameRecord, action{#id-two}">click</button>--> | ||
<button type="button" id="id-one" data-actions="test_s1, event{actionEvent}, timeout{2000}, action{#id-two}">click</button> | ||
|
||
</form> | ||
<form> | ||
<input data-sendgrid="cnameRecord"> | ||
<button id="id-two" type="button" data-actions="test_s2, action{#id-three}" hidden>click</button> | ||
</form> | ||
<form> | ||
<input data-sendgrid="cnameRecord"> | ||
<button id="id-three" type="button" data-actions="test_s1" hidden>click</button> | ||
</form> | ||
</div> | ||
|
||
<button id="fireEvent" type="button">Fire Event</button> | ||
|
||
<script> | ||
var config = { | ||
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a', | ||
securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265', | ||
organization_Id: '5de0387b12e200ea63204d6c' | ||
} | ||
</script> | ||
|
||
<!--<script src="https://server.cocreate.app/CoCreateJS/dist/CoCreate.js"></script>--> | ||
<script src="https://server.cocreate.app/CoCreateJS/dist/CoCreate.js"></script> | ||
|
||
<script> | ||
let eventBtn = document.getElementById('fireEvent') | ||
eventBtn.addEventListener('click', function() { | ||
|
||
console.log('Fire Event.....'); | ||
var customEvent = new CustomEvent("actionEvent", {detail: {item: "testing"}}); | ||
document.dispatchEvent(customEvent); | ||
}) | ||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>test | CoCreate</title> | ||
|
||
|
||
<link rel="stylesheet" href="https://server.cocreate.app/css/CoCreate.min.css" type="text/css" /> | ||
|
||
<!-- Font Awesome --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" crossorigin="anonymous" /> | ||
</head> | ||
<body class="padding:20px"> | ||
|
||
<h1 data-collection="module_activities" data-document_id="5edda7608d5c7a7d656edecd" name="name"></h1> | ||
<h2 data-collection="module_activities" data-document_id="5edda7608d5c7a7d656edecd" name="name1"></h2> | ||
<h3 data-collection="module_activities" data-document_id="5edda7608d5c7a7d656edecd" name="color" ></h3> | ||
<h4 data-collection="module_activities" data-document_id="5edda7608d5c7a7d656edecd" name="search"></h4> | ||
<h5 data-collection="module_activities" data-document_id="5edda7608d5c7a7d656edecd" name="date"></h5> | ||
<h6 data-test="testing" data-collection="module_activities" data-document_id="5edda7608d5c7a7d656edecd" name="time"></h6> | ||
|
||
|
||
|
||
|
||
<script> | ||
var config = { | ||
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a', | ||
securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265', | ||
organization_Id: '5de0387b12e200ea63204d6c', | ||
// host: 'wss://ws.cocreate.app' | ||
} | ||
</script> | ||
|
||
|
||
|
||
<!--<script src="../dist/CoCreate-test.js"></script>--> | ||
<script src="https://server.cocreate.app/CoCreateJS/dist/CoCreate.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.