diff --git a/.github/workflows/acebase.yml b/.github/workflows/acebase.yml new file mode 100644 index 00000000..dbd1d779 --- /dev/null +++ b/.github/workflows/acebase.yml @@ -0,0 +1,51 @@ +name: 'acebase-build' + +on: + push: + tags: + - v* + +env: + REGISTRY: ghcr.io + IMAGE_NAME: msa-ez/acebase + +jobs: + test: + name: install + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./acebase + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Cache node modules + uses: actions/cache@v2 + id: cache + with: + path: node_modules + key: npm-packages-${{ hashFiles('**/package-lock.json') }} + - name: Install Dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: npm install + - name: Log in to the Container registry + uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + with: + registry: ${{ env.REGISTRY }} + username: ${{ secrets.ID }} + password: ${{ secrets.TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Build and push Docker image + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: ./acebase + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.github/workflows/github-actions.yml b/.github/workflows/platform.yml similarity index 87% rename from .github/workflows/github-actions.yml rename to .github/workflows/platform.yml index 81eb3d4e..b5a9b057 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/platform.yml @@ -1,6 +1,13 @@ name: 'platform-build' -on: push +on: + push: + tags: + - v* + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} jobs: test: @@ -27,8 +34,8 @@ jobs: uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.ID }} + password: ${{ secrets.TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 diff --git a/acebase/main.js b/acebase/main.js index 291872c4..e10d533f 100644 --- a/acebase/main.js +++ b/acebase/main.js @@ -12,8 +12,8 @@ const https = process.env.DB_HTTPS ? process.env.DB_HTTPS : false; // DB PORT const provider = process.env.PROVIDER ? process.env.PROVIDER : "github"; // DB PORT const gitlab = process.env.GITLAB ? process.env.GITLAB : null; // DB PORT const server = new AceBaseServer(dbname, { - host: "localhost", - port: 5757, + host: host, + port: dbport, storage: { path: "/acebase" }, @@ -40,14 +40,13 @@ server.configAuthProvider(provider, { host: gitlab }) - server.on("ready", () => { console.log("SERVER ready"); }); const db = new AceBaseClient({ - host: "localhost", - port: 5757, + host: host, + port: dbport, dbname: dbname, https: JSON.parse(https), }); diff --git a/gcloud b/gcloud new file mode 100644 index 00000000..e69de29b diff --git a/package.json b/package.json index c779c88c..9733e277 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ }, "main": "background.js", "dependencies": { + "@apidevtools/swagger-parser": "^10.1.0", "@crinkles/digl": "^2.0.3", "@firebase/auth": "^1.3.0", "@hscmap/vue-window": "^2.4.2", @@ -201,7 +202,8 @@ "electron-devtools-installer": "^3.1.0", "fork-ts-checker-webpack-plugin": "^6.5.2", "husky": "^7.0.2", - "jest": "^29.6.2", + "jest": "^29.7.0", + "jest-environment-jsdom-fifteen": "^1.0.2", "node-sass": "^7.0.1", "prettier": "2.6.2", "prismjs": "^1.24.1", diff --git a/src/components/designer/MarketPlace.vue b/src/components/designer/MarketPlace.vue index 4fa4b034..056a6867 100644 --- a/src/components/designer/MarketPlace.vue +++ b/src/components/designer/MarketPlace.vue @@ -4,24 +4,24 @@

Marketplace

mdi-close Templates Toppings - - @@ -29,9 +29,9 @@ @@ -44,16 +44,16 @@ @@ -66,25 +66,25 @@
{{ temp.description }}
{{ temp.name }} Rating: {{ temp.rating }} @@ -99,16 +99,16 @@ @@ -121,26 +121,26 @@
{{ topping.description }}
{{ topping.name }} Rating: {{ topping.rating }} @@ -161,19 +161,19 @@
{{ selectedTemplate.name }} {{ selectedTemplate.description }} Rating: {{ selectedTemplate.rating }} @@ -184,16 +184,16 @@
apply @@ -207,19 +207,19 @@
{{ selectedTopping.name }} {{ selectedTopping.description }} Rating: {{ selectedTopping.rating }} @@ -233,19 +233,19 @@ {{ depends }}
- + apply
@@ -256,358 +256,358 @@ \ No newline at end of file diff --git a/src/components/designer/context-mapping-modeling/ContextMappingModelCanvas.vue b/src/components/designer/context-mapping-modeling/ContextMappingModelCanvas.vue index 0ca800bc..ea576119 100644 --- a/src/components/designer/context-mapping-modeling/ContextMappingModelCanvas.vue +++ b/src/components/designer/context-mapping-modeling/ContextMappingModelCanvas.vue @@ -1039,6 +1039,7 @@
@@ -1149,37 +1150,37 @@ } await me.putObject(`db://definitions/${settingProjectId}/information`, { - author: me.userInfo.uid, - authorEmail: me.userInfo.email, - lastVersionName: version, - comment: me.storageCondition.comment, - createdTimeStamp: Date.now(), - lastModifiedTimeStamp: Date.now(), - lastModifiedUser: null, - lastModifiedEmail: null, - projectName: me.storageCondition.projectName, - type: me.storageCondition.type ? me.storageCondition.type : me.canvasType, - projectId: settingProjectId, - firstCommit: null, - associatedProject: me.information.associatedProject + author: me.userInfo.uid, + authorEmail: me.userInfo.email, + lastVersionName: version, + comment: me.storageCondition.comment, + createdTimeStamp: Date.now(), + lastModifiedTimeStamp: Date.now(), + lastModifiedUser: null, + lastModifiedEmail: null, + projectName: me.storageCondition.projectName, + type: me.storageCondition.type ? me.storageCondition.type : me.canvasType, + projectId: settingProjectId, + firstCommit: null, + associatedProject: me.information.associatedProject }) await me.pushObject(`db://definitions/${settingProjectId}/snapshotLists`,{ - lastSnapshotKey: '', - snapshot: JSON.stringify(defaultValue), - snapshotImg: null, - timeStamp: Date.now() + lastSnapshotKey: '', + snapshot: JSON.stringify(defaultValue), + snapshotImg: null, + timeStamp: Date.now() }) let valueUrl = await me.putString(`storage://definitions/${settingProjectId}/versionLists/${version}/versionValue`, JSON.stringify(defaultValue)); await me.putObject(`db://definitions/${settingProjectId}/versionLists/${version}`, { - saveUser: me.userInfo.uid, - saveUserEmail: me.userInfo.email, - saveUserName: me.userInfo.name, - projectName: me.storageCondition.projectName, - img: null, - timeStamp: Date.now(), - comment: me.storageCondition.comment, - valueUrl: valueUrl + saveUser: me.userInfo.uid, + saveUserEmail: me.userInfo.email, + saveUserName: me.userInfo.name, + projectName: me.storageCondition.projectName, + img: null, + timeStamp: Date.now(), + comment: me.storageCondition.comment, + valueUrl: valueUrl }) if( me.storageCondition.type == 'es' ){ diff --git a/src/components/designer/es-modeling/EventStormingModelCanvas.vue b/src/components/designer/es-modeling/EventStormingModelCanvas.vue index c90afe58..10ba06f1 100644 --- a/src/components/designer/es-modeling/EventStormingModelCanvas.vue +++ b/src/components/designer/es-modeling/EventStormingModelCanvas.vue @@ -1,12 +1,12 @@