From 40ab6d338642ace705dbb8d20988ea8afb77f148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Moitti=C3=A9?= Date: Wed, 30 Aug 2023 11:29:28 +0200 Subject: [PATCH] wip --- package-lock.json | 72 ++++++++++++++- package.json | 2 + plugin.config.json | 6 ++ .../githubator-plugin/icons/CommandStep.svg | 3 + .../githubator-plugin/icons/DefaultJob.svg | 3 + .../githubator-plugin/icons/DefaultStep.svg | 3 + .../icons/DefaultTrigger.svg | 3 + .../icons/DefaultWorkflow.svg | 3 + .../icons/PullRequestTrigger.svg | 3 + .../githubator-plugin/icons/PushTrigger.svg | 3 + .../githubator-plugin/icons/ReusableStep.svg | 3 + .../githubator-plugin/icons/github.svg | 1 + .../icons/githubator-plugin.svg | 1 + .../plugins/githubator-plugin/models/job.svg | 72 +++++++++++++++ .../plugins/githubator-plugin/models/step.svg | 66 ++++++++++++++ .../githubator-plugin/models/trigger.svg | 47 ++++++++++ .../githubator-plugin/models/workflow.svg | 46 ++++++++++ .../icons/Amazon-CloudWatch_Alarm.svg | 7 ++ .../terrator-plugin/icons/Amazon-EFS.svg | 18 ++++ .../icons/AwsDbSubnetGroup.svg | 11 +++ .../icons/AwsSecurityGroup.svg | 87 +++++++++++++++++++ ...Application-Load-Balancer-Target-Group.svg | 18 ++++ .../icons/Aws_Application-Load-Balancer.svg | 7 ++ .../icons/Aws_Auto-Scaling.svg | 7 ++ .../terrator-plugin/icons/Aws_Connector.svg | 7 ++ .../icons/Aws_EC2-Instance.svg | 7 ++ .../terrator-plugin/icons/Aws_EC2_AMI.svg | 7 ++ .../icons/Aws_EC2_DB-Instance.svg | 7 ++ .../icons/Aws_Elastic-Block-Store_Volume.svg | 7 ++ ...c-Load-Balancing_Network-Load-Balancer.svg | 7 ++ ...nagement_Long-Term-Security-Credential.svg | 7 ++ .../icons/Aws_Launch-Configuration.svg | 18 ++++ .../terrator-plugin/icons/Aws_Local-Zones.svg | 18 ++++ .../terrator-plugin/icons/Aws_Mesh.svg | 7 ++ .../plugins/terrator-plugin/icons/Aws_RDS.svg | 18 ++++ .../icons/Aws_Route-53-Hosted-Zone.svg | 7 ++ .../terrator-plugin/icons/Aws_Route-53.svg | 18 ++++ .../icons/Aws_Route-53_Route-Table.svg | 7 ++ .../terrator-plugin/icons/Aws_Servers.svg | 7 ++ .../icons/Aws_Storage-Service_Bucket-ACL.svg | 7 ++ .../icons/Aws_Storage-Service_Bucket.svg | 7 ++ .../icons/Aws_VPC_Internet-Gateway.svg | 7 ++ .../icons/Aws_Virtual-Private-Cloud.svg | 18 ++++ public/plugins/terrator-plugin/icons/aws.svg | 38 ++++++++ .../terrator-plugin/icons/terrator-plugin.svg | 1 + .../terrator-plugin/icons/variable.svg | 1 + .../models/DefaultContainer.svg | 72 +++++++++++++++ .../terrator-plugin/models/DefaultModel.svg | 65 ++++++++++++++ src/components/editor/MonacoEditor.vue | 8 +- src/plugins/index.js | 8 +- 50 files changed, 864 insertions(+), 9 deletions(-) create mode 100644 plugin.config.json create mode 100644 public/plugins/githubator-plugin/icons/CommandStep.svg create mode 100644 public/plugins/githubator-plugin/icons/DefaultJob.svg create mode 100644 public/plugins/githubator-plugin/icons/DefaultStep.svg create mode 100644 public/plugins/githubator-plugin/icons/DefaultTrigger.svg create mode 100644 public/plugins/githubator-plugin/icons/DefaultWorkflow.svg create mode 100644 public/plugins/githubator-plugin/icons/PullRequestTrigger.svg create mode 100644 public/plugins/githubator-plugin/icons/PushTrigger.svg create mode 100644 public/plugins/githubator-plugin/icons/ReusableStep.svg create mode 100644 public/plugins/githubator-plugin/icons/github.svg create mode 100644 public/plugins/githubator-plugin/icons/githubator-plugin.svg create mode 100644 public/plugins/githubator-plugin/models/job.svg create mode 100644 public/plugins/githubator-plugin/models/step.svg create mode 100644 public/plugins/githubator-plugin/models/trigger.svg create mode 100644 public/plugins/githubator-plugin/models/workflow.svg create mode 100644 public/plugins/terrator-plugin/icons/Amazon-CloudWatch_Alarm.svg create mode 100644 public/plugins/terrator-plugin/icons/Amazon-EFS.svg create mode 100644 public/plugins/terrator-plugin/icons/AwsDbSubnetGroup.svg create mode 100644 public/plugins/terrator-plugin/icons/AwsSecurityGroup.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Application-Load-Balancer-Target-Group.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Application-Load-Balancer.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Auto-Scaling.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Connector.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_EC2-Instance.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_EC2_AMI.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_EC2_DB-Instance.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Elastic-Block-Store_Volume.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Elastic-Load-Balancing_Network-Load-Balancer.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Identity-Access-Management_Long-Term-Security-Credential.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Launch-Configuration.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Local-Zones.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Mesh.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_RDS.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Route-53-Hosted-Zone.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Route-53.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Route-53_Route-Table.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Servers.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Storage-Service_Bucket-ACL.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Storage-Service_Bucket.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_VPC_Internet-Gateway.svg create mode 100644 public/plugins/terrator-plugin/icons/Aws_Virtual-Private-Cloud.svg create mode 100644 public/plugins/terrator-plugin/icons/aws.svg create mode 100644 public/plugins/terrator-plugin/icons/terrator-plugin.svg create mode 100644 public/plugins/terrator-plugin/icons/variable.svg create mode 100644 public/plugins/terrator-plugin/models/DefaultContainer.svg create mode 100644 public/plugins/terrator-plugin/models/DefaultModel.svg diff --git a/package-lock.json b/package-lock.json index 9f0b56cee..d35c0e0f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "axios": "=1.4.0", "browserfs": "=1.4.3", "core-js": "=3.32.1", + "githubator-plugin": "github:ditrit/githubator-plugin#0.2.3", "isomorphic-git": "=1.24.5", "leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.19.0", "monaco-editor": "=0.41.0", @@ -19,6 +20,7 @@ "oidc-client-ts": "^2.2.5", "quasar": "=2.12.5", "rxjs": "=7.8.1", + "terrator-plugin": "github:ditrit/terrator-plugin#0.5.0", "v-viewer": "=3.0.11", "vue": "=3.3.4", "vue-3-sanitize": "=0.1.4", @@ -8273,6 +8275,14 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/antlr4": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/antlr4/-/antlr4-4.13.0.tgz", + "integrity": "sha512-zooUbt+UscjnWyOrsuY/tVFL4rwrAGwOivpQmvmUDE22hy/lUA467Rc1rcixyRwcRUIXFYBwv7+dClDSHdmmew==", + "engines": { + "node": ">=16" + } + }, "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", @@ -15717,6 +15727,16 @@ "node": ">= 6" } }, + "node_modules/githubator-plugin": { + "version": "0.2.3", + "resolved": "git+ssh://git@github.com/ditrit/githubator-plugin.git#6e65a3ca6822bd0de2e5b605258aaa587bf481bd", + "license": "Mozilla Public License 2.0", + "dependencies": { + "leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.19.0", + "lidy-js": "github:ditrit/lidy-js#1.0.1", + "nunjucks": "=3.2.4" + } + }, "node_modules/glob": { "version": "10.3.3", "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.3.tgz", @@ -20712,6 +20732,14 @@ "node": ">= 0.8.0" } }, + "node_modules/lidy-js": { + "version": "1.0.1", + "resolved": "git+ssh://git@github.com/ditrit/lidy-js.git#240f1c079feb56d8388ad31092632bce72c0a268", + "license": "MPL-2.0", + "dependencies": { + "yaml": "^2.0.0-5" + } + }, "node_modules/lilconfig": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", @@ -27569,6 +27597,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/terrator-plugin": { + "version": "0.5.0", + "resolved": "git+ssh://git@github.com/ditrit/terrator-plugin.git#6b3d6635971016fbdc2e8ce21b477abeaf41922f", + "license": "Mozilla Public License 2.0", + "dependencies": { + "antlr4": "=4.13.0", + "leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.19.0", + "nunjucks": "=3.2.4" + } + }, "node_modules/terser": { "version": "5.19.2", "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.2.tgz", @@ -30329,7 +30367,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", - "dev": true, "engines": { "node": ">= 14" } @@ -36450,6 +36487,11 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true }, + "antlr4": { + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/antlr4/-/antlr4-4.13.0.tgz", + "integrity": "sha512-zooUbt+UscjnWyOrsuY/tVFL4rwrAGwOivpQmvmUDE22hy/lUA467Rc1rcixyRwcRUIXFYBwv7+dClDSHdmmew==" + }, "any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", @@ -42057,6 +42099,15 @@ } } }, + "githubator-plugin": { + "version": "git+ssh://git@github.com/ditrit/githubator-plugin.git#6e65a3ca6822bd0de2e5b605258aaa587bf481bd", + "from": "githubator-plugin@https://github.com/ditrit/githubator-plugin.git#0.2.3", + "requires": { + "leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.19.0", + "lidy-js": "github:ditrit/lidy-js#1.0.1", + "nunjucks": "=3.2.4" + } + }, "glob": { "version": "10.3.3", "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.3.tgz", @@ -45835,6 +45886,13 @@ "type-check": "~0.4.0" } }, + "lidy-js": { + "version": "git+ssh://git@github.com/ditrit/lidy-js.git#240f1c079feb56d8388ad31092632bce72c0a268", + "from": "lidy-js@github:ditrit/lidy-js#1.0.1", + "requires": { + "yaml": "^2.0.0-5" + } + }, "lilconfig": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", @@ -51101,6 +51159,15 @@ "supports-hyperlinks": "^2.0.0" } }, + "terrator-plugin": { + "version": "git+ssh://git@github.com/ditrit/terrator-plugin.git#6b3d6635971016fbdc2e8ce21b477abeaf41922f", + "from": "terrator-plugin@github:ditrit/terrator-plugin#0.5.0", + "requires": { + "antlr4": "=4.13.0", + "leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.19.0", + "nunjucks": "=3.2.4" + } + }, "terser": { "version": "5.19.2", "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.2.tgz", @@ -53188,8 +53255,7 @@ "yaml": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz", - "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==", - "dev": true + "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==" }, "yargs": { "version": "16.2.0", diff --git a/package.json b/package.json index c3a375425..9c75704f8 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "axios": "=1.4.0", "browserfs": "=1.4.3", "core-js": "=3.32.1", + "githubator-plugin": "github:ditrit/githubator-plugin#0.2.3", "isomorphic-git": "=1.24.5", "leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.19.0", "monaco-editor": "=0.41.0", @@ -31,6 +32,7 @@ "oidc-client-ts": "^2.2.5", "quasar": "=2.12.5", "rxjs": "=7.8.1", + "terrator-plugin": "github:ditrit/terrator-plugin#0.5.0", "v-viewer": "=3.0.11", "vue": "=3.3.4", "vue-3-sanitize": "=0.1.4", diff --git a/plugin.config.json b/plugin.config.json new file mode 100644 index 000000000..ba0a6d230 --- /dev/null +++ b/plugin.config.json @@ -0,0 +1,6 @@ +{ + "plugins": [ + "terrator-plugin", + "githubator-plugin" + ] +} \ No newline at end of file diff --git a/public/plugins/githubator-plugin/icons/CommandStep.svg b/public/plugins/githubator-plugin/icons/CommandStep.svg new file mode 100644 index 000000000..e06618206 --- /dev/null +++ b/public/plugins/githubator-plugin/icons/CommandStep.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/plugins/githubator-plugin/icons/DefaultJob.svg b/public/plugins/githubator-plugin/icons/DefaultJob.svg new file mode 100644 index 000000000..4f4692e96 --- /dev/null +++ b/public/plugins/githubator-plugin/icons/DefaultJob.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/plugins/githubator-plugin/icons/DefaultStep.svg b/public/plugins/githubator-plugin/icons/DefaultStep.svg new file mode 100644 index 000000000..918485e32 --- /dev/null +++ b/public/plugins/githubator-plugin/icons/DefaultStep.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/plugins/githubator-plugin/icons/DefaultTrigger.svg b/public/plugins/githubator-plugin/icons/DefaultTrigger.svg new file mode 100644 index 000000000..e38d59094 --- /dev/null +++ b/public/plugins/githubator-plugin/icons/DefaultTrigger.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/plugins/githubator-plugin/icons/DefaultWorkflow.svg b/public/plugins/githubator-plugin/icons/DefaultWorkflow.svg new file mode 100644 index 000000000..92c82404d --- /dev/null +++ b/public/plugins/githubator-plugin/icons/DefaultWorkflow.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/plugins/githubator-plugin/icons/PullRequestTrigger.svg b/public/plugins/githubator-plugin/icons/PullRequestTrigger.svg new file mode 100644 index 000000000..008419053 --- /dev/null +++ b/public/plugins/githubator-plugin/icons/PullRequestTrigger.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/plugins/githubator-plugin/icons/PushTrigger.svg b/public/plugins/githubator-plugin/icons/PushTrigger.svg new file mode 100644 index 000000000..d99556f71 --- /dev/null +++ b/public/plugins/githubator-plugin/icons/PushTrigger.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/plugins/githubator-plugin/icons/ReusableStep.svg b/public/plugins/githubator-plugin/icons/ReusableStep.svg new file mode 100644 index 000000000..9f41647c6 --- /dev/null +++ b/public/plugins/githubator-plugin/icons/ReusableStep.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/plugins/githubator-plugin/icons/github.svg b/public/plugins/githubator-plugin/icons/github.svg new file mode 100644 index 000000000..b4056b2bc --- /dev/null +++ b/public/plugins/githubator-plugin/icons/github.svg @@ -0,0 +1 @@ + diff --git a/public/plugins/githubator-plugin/icons/githubator-plugin.svg b/public/plugins/githubator-plugin/icons/githubator-plugin.svg new file mode 100644 index 000000000..aa05db9c5 --- /dev/null +++ b/public/plugins/githubator-plugin/icons/githubator-plugin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/plugins/githubator-plugin/models/job.svg b/public/plugins/githubator-plugin/models/job.svg new file mode 100644 index 000000000..4947773e1 --- /dev/null +++ b/public/plugins/githubator-plugin/models/job.svg @@ -0,0 +1,72 @@ + + + + + + + + {% if hasError %} + + + + + + {% endif %} + + + {% if getAttribute('name') !== null%}{{ getAttribute('name').value }}{% else %}{{ id }}{% endif %} + {{ definition.type }} + + + + + + + + + + + + + diff --git a/public/plugins/githubator-plugin/models/step.svg b/public/plugins/githubator-plugin/models/step.svg new file mode 100644 index 000000000..d533e92d4 --- /dev/null +++ b/public/plugins/githubator-plugin/models/step.svg @@ -0,0 +1,66 @@ + + + + + + + + + {% if hasError %} + + + + + + {% endif %} + + + + {% if getAttribute('name') != null%}{{ getAttribute('name').value }}{% else %}{{ id }}{% endif %} + {{ definition.name }} + + + + + + + + + + diff --git a/public/plugins/githubator-plugin/models/trigger.svg b/public/plugins/githubator-plugin/models/trigger.svg new file mode 100644 index 000000000..8b79b06ad --- /dev/null +++ b/public/plugins/githubator-plugin/models/trigger.svg @@ -0,0 +1,47 @@ + + + + + + + + + {% if hasError %} + + + + + + {% endif %} + + + + {{ definition.action }} + Trigger + + + diff --git a/public/plugins/githubator-plugin/models/workflow.svg b/public/plugins/githubator-plugin/models/workflow.svg new file mode 100644 index 000000000..566b388a2 --- /dev/null +++ b/public/plugins/githubator-plugin/models/workflow.svg @@ -0,0 +1,46 @@ + + + + {% if hasError %} + + + + + + {% endif %} + + + Workflow: {{ getAttribute('name').value}} + + + + + + diff --git a/public/plugins/terrator-plugin/icons/Amazon-CloudWatch_Alarm.svg b/public/plugins/terrator-plugin/icons/Amazon-CloudWatch_Alarm.svg new file mode 100644 index 000000000..70b3702f2 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Amazon-CloudWatch_Alarm.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Managment-Governance/Res_Amazon-Cloudwatch_Alarm_48_Dark + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Amazon-EFS.svg b/public/plugins/terrator-plugin/icons/Amazon-EFS.svg new file mode 100644 index 000000000..3de27d816 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Amazon-EFS.svg @@ -0,0 +1,18 @@ + + + Icon-Architecture/32/Arch_Amazon-EFS_32 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/AwsDbSubnetGroup.svg b/public/plugins/terrator-plugin/icons/AwsDbSubnetGroup.svg new file mode 100644 index 000000000..669ea7808 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/AwsDbSubnetGroup.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/public/plugins/terrator-plugin/icons/AwsSecurityGroup.svg b/public/plugins/terrator-plugin/icons/AwsSecurityGroup.svg new file mode 100644 index 000000000..6dbb3577a --- /dev/null +++ b/public/plugins/terrator-plugin/icons/AwsSecurityGroup.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Application-Load-Balancer-Target-Group.svg b/public/plugins/terrator-plugin/icons/Aws_Application-Load-Balancer-Target-Group.svg new file mode 100644 index 000000000..fd3c627ae --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Application-Load-Balancer-Target-Group.svg @@ -0,0 +1,18 @@ + + + + Icon-Architecture/48/Arch_Elastic-Load-Balancing_48 + Created with Sketch. + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_Application-Load-Balancer.svg b/public/plugins/terrator-plugin/icons/Aws_Application-Load-Balancer.svg new file mode 100644 index 000000000..988c54b9b --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Application-Load-Balancer.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_AWS-Elastic-Load-Balancing_Application-Load-Balancer_48_Light + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_Auto-Scaling.svg b/public/plugins/terrator-plugin/icons/Aws_Auto-Scaling.svg new file mode 100644 index 000000000..b7f3acc3a --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Auto-Scaling.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Compute/Res_Amazon-EC2_Auto-Scaling_48_Dark + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_Connector.svg b/public/plugins/terrator-plugin/icons/Aws_Connector.svg new file mode 100644 index 000000000..5b85d7f19 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Connector.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/IoT/Res_Greengrass_Connector_48_Light + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_EC2-Instance.svg b/public/plugins/terrator-plugin/icons/Aws_EC2-Instance.svg new file mode 100644 index 000000000..57c324701 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_EC2-Instance.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Compute/Res_Amazon-EC2_A1-Instance_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_EC2_AMI.svg b/public/plugins/terrator-plugin/icons/Aws_EC2_AMI.svg new file mode 100644 index 000000000..35a0594fe --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_EC2_AMI.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Compute/Res_Amazon-EC2_AMI_Resource_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_EC2_DB-Instance.svg b/public/plugins/terrator-plugin/icons/Aws_EC2_DB-Instance.svg new file mode 100644 index 000000000..d7e9b2e31 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_EC2_DB-Instance.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Compute/Res_Amazon-EC2_DB-Instance_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Elastic-Block-Store_Volume.svg b/public/plugins/terrator-plugin/icons/Aws_Elastic-Block-Store_Volume.svg new file mode 100644 index 000000000..ed1ea6d18 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Elastic-Block-Store_Volume.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Storage/Res_AWS-Amazon-Elastic-Block-Store_Volumes_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Elastic-Load-Balancing_Network-Load-Balancer.svg b/public/plugins/terrator-plugin/icons/Aws_Elastic-Load-Balancing_Network-Load-Balancer.svg new file mode 100644 index 000000000..46c308093 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Elastic-Load-Balancing_Network-Load-Balancer.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_AWS-Elastic-Load-Balancing_Network-Load-Balancer_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Identity-Access-Management_Long-Term-Security-Credential.svg b/public/plugins/terrator-plugin/icons/Aws_Identity-Access-Management_Long-Term-Security-Credential.svg new file mode 100644 index 000000000..83018b15b --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Identity-Access-Management_Long-Term-Security-Credential.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Security-Identity-and-Compliance/Res_AWS-Identity-Access-Management_Long-Term-Security-Credential_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Launch-Configuration.svg b/public/plugins/terrator-plugin/icons/Aws_Launch-Configuration.svg new file mode 100644 index 000000000..a99aad127 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Launch-Configuration.svg @@ -0,0 +1,18 @@ + + + + Icon-Architecture/48/Arch_AWS-App-Wizard_48 + Created with Sketch. + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_Local-Zones.svg b/public/plugins/terrator-plugin/icons/Aws_Local-Zones.svg new file mode 100644 index 000000000..4fc734335 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Local-Zones.svg @@ -0,0 +1,18 @@ + + + + Icon-Architecture/48/Arch_AWS-Local-Zones_48 + Created with Sketch. + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_Mesh.svg b/public/plugins/terrator-plugin/icons/Aws_Mesh.svg new file mode 100644 index 000000000..89957ee7e --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Mesh.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_AWS-App-Mesh-Mesh_48_Light + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_RDS.svg b/public/plugins/terrator-plugin/icons/Aws_RDS.svg new file mode 100644 index 000000000..cdfb23fb8 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_RDS.svg @@ -0,0 +1,18 @@ + + + + Icon-Architecture/48/Arch_Amazon-RDS_48 + Created with Sketch. + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_Route-53-Hosted-Zone.svg b/public/plugins/terrator-plugin/icons/Aws_Route-53-Hosted-Zone.svg new file mode 100644 index 000000000..315a35db9 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Route-53-Hosted-Zone.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_AWS-Amazon-Route-53-Hosted-Zone_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Route-53.svg b/public/plugins/terrator-plugin/icons/Aws_Route-53.svg new file mode 100644 index 000000000..587bd9b4a --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Route-53.svg @@ -0,0 +1,18 @@ + + + + Icon-Architecture/48/Arch_Amazon-Route-53_48 + Created with Sketch. + + + + + + + + + + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Route-53_Route-Table.svg b/public/plugins/terrator-plugin/icons/Aws_Route-53_Route-Table.svg new file mode 100644 index 000000000..6b822a8e4 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Route-53_Route-Table.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_AWS-Amazon-Route-53_Route-Table_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Servers.svg b/public/plugins/terrator-plugin/icons/Aws_Servers.svg new file mode 100644 index 000000000..47661450c --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Servers.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/General-Resource/Res_Servers_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Storage-Service_Bucket-ACL.svg b/public/plugins/terrator-plugin/icons/Aws_Storage-Service_Bucket-ACL.svg new file mode 100644 index 000000000..c558b8332 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Storage-Service_Bucket-ACL.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Storage/Res_AWS-Amazon-Simple-Storage_Bucket-With-Objects_48_Light + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_Storage-Service_Bucket.svg b/public/plugins/terrator-plugin/icons/Aws_Storage-Service_Bucket.svg new file mode 100644 index 000000000..dbac568d9 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Storage-Service_Bucket.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Storage/Res_AWS-Amazon-Simple-Storage_Bucket_48_Light + + + + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/Aws_VPC_Internet-Gateway.svg b/public/plugins/terrator-plugin/icons/Aws_VPC_Internet-Gateway.svg new file mode 100644 index 000000000..44c2eeb49 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_VPC_Internet-Gateway.svg @@ -0,0 +1,7 @@ + + + Icon-Resource/Networking-and-Content-Delivery/Res_AWS-Amazon-VPC_Internet-Gateway_48_Light + + + + diff --git a/public/plugins/terrator-plugin/icons/Aws_Virtual-Private-Cloud.svg b/public/plugins/terrator-plugin/icons/Aws_Virtual-Private-Cloud.svg new file mode 100644 index 000000000..b10d1ec59 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/Aws_Virtual-Private-Cloud.svg @@ -0,0 +1,18 @@ + + + + Icon-Architecture/48/Arch_Amazon-Virtual-Private-Cloud_48 + Created with Sketch. + + + + + + + + + + + + + diff --git a/public/plugins/terrator-plugin/icons/aws.svg b/public/plugins/terrator-plugin/icons/aws.svg new file mode 100644 index 000000000..7b6239857 --- /dev/null +++ b/public/plugins/terrator-plugin/icons/aws.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + diff --git a/public/plugins/terrator-plugin/icons/terrator-plugin.svg b/public/plugins/terrator-plugin/icons/terrator-plugin.svg new file mode 100644 index 000000000..4929cd9ae --- /dev/null +++ b/public/plugins/terrator-plugin/icons/terrator-plugin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/plugins/terrator-plugin/icons/variable.svg b/public/plugins/terrator-plugin/icons/variable.svg new file mode 100644 index 000000000..4a02106ce --- /dev/null +++ b/public/plugins/terrator-plugin/icons/variable.svg @@ -0,0 +1 @@ + diff --git a/public/plugins/terrator-plugin/models/DefaultContainer.svg b/public/plugins/terrator-plugin/models/DefaultContainer.svg new file mode 100644 index 000000000..4fc1f9077 --- /dev/null +++ b/public/plugins/terrator-plugin/models/DefaultContainer.svg @@ -0,0 +1,72 @@ + + + + + + + + {% if hasError %} + + + + + + {% endif %} + + + {{ id }} + {{ definition.type }} + + + + + + + + + + + + + diff --git a/public/plugins/terrator-plugin/models/DefaultModel.svg b/public/plugins/terrator-plugin/models/DefaultModel.svg new file mode 100644 index 000000000..9e8b8af35 --- /dev/null +++ b/public/plugins/terrator-plugin/models/DefaultModel.svg @@ -0,0 +1,65 @@ + + + + + + + + + {% if hasError %} + + + + + + {% endif %} + + + + {{ id }} + {{ definition.type }} + + + + + + + + + + diff --git a/src/components/editor/MonacoEditor.vue b/src/components/editor/MonacoEditor.vue index 177e2dbaf..f771f3d53 100644 --- a/src/components/editor/MonacoEditor.vue +++ b/src/components/editor/MonacoEditor.vue @@ -28,8 +28,6 @@ import GitEvent from 'src/composables/events/GitEvent'; import { getPlugins } from 'src/composables/PluginManager'; import Languages from 'assets/editor/languages'; -const monaco = require('monaco-editor'); - const props = defineProps({ projectName: { type: String, @@ -42,6 +40,7 @@ const props = defineProps({ }); const container = ref(null); +let monaco; let editor; let checkoutSubscription; let addRemoteSubscription; @@ -136,7 +135,8 @@ async function updateEditorContent() { } onBeforeMount(async () => { - await nextTick(); + monaco = await import('monaco-editor'); + // await nextTick(); if (!editor) { await createEditor(); } @@ -158,7 +158,7 @@ onMounted(() => { }); onUpdated(async () => { - await nextTick(); + // await nextTick(); await updateEditorLayout(); }); diff --git a/src/plugins/index.js b/src/plugins/index.js index 368bd1d65..3484655a7 100644 --- a/src/plugins/index.js +++ b/src/plugins/index.js @@ -1,3 +1,7 @@ -// Currently empty but should be filled by CLI (cf. README) +import terratorPlugin from 'terrator-plugin'; +import githubatorPlugin from 'githubator-plugin'; -export default {}; +export default { +terratorPlugin, +githubatorPlugin, +}; \ No newline at end of file