Skip to content

Commit

Permalink
Merge pull request #72 from codeKraken19/codekrakenV1beta
Browse files Browse the repository at this point in the history
add Pen definition and update schemas
  • Loading branch information
aabidsofi19 authored Apr 27, 2024
2 parents 3cdb094 + 5ae72d0 commit a428549
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 5 deletions.
47 changes: 47 additions & 0 deletions definitions/meshery-core/0.7.1/components/Pen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"id": "00000000-0000-0000-0000-000000000000",
"kind": "Pen",
"apiVersion": "core.meshery.io/v1alpha1",
"displayName": "Pen",
"format": "JSON",
"hostID": "00000000-0000-0000-0000-000000000000",
"metadata": {
"capabilities": "{\"designer\":{\"edit\":{\"config\":false,\"lock\":true,\"shape\":{\"convert-shape\":false},\"style\":false},\"label\":{\"edit\":true,\"show\":false,\"sync-with-config-property\":\"none\"}}}",
"defaultData": "{\"label\":\"\"}",
"genealogy": "",
"isAnnotation": true,
"primaryColor": "#00B39F",
"published": true,
"secondaryColor": "#00D3A9",
"shape": "circle",
"shapePolygonPoints": "",
"styleOverrides": "{\"height\":\"30px\",\"width\":\"30px\", \"background-image\":\"none\",\"border-width\":1,\"border-style\":\"solid\",\"visibility\":\"hidden\",\"data\":{\"label\":\"\"}}",
"styles": "{\"height\":\"30px\",\"width\":\"30px\", \"background-image\":\"none\",\"border-width\":0,\"border-style\":\"solid\"}",
"subCategory": "",
"svgColor": "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"1.5\" y=\"1\" width=\"38\" height=\"38\" fill=\"#00B39F\" fill-opacity=\"0.1\" stroke=\"#00B39F\" stroke-miterlimit=\"10\"/>\n</svg>\n",
"svgComplete": "",
"svgWhite": "<svg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"1.5\" y=\"1\" width=\"38\" height=\"38\" fill=\"white\" fill-opacity=\"0.1\" stroke=\"white\" stroke-miterlimit=\"10\"/>\n</svg>\n"
},
"model": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "meshery-core",
"version": "0.7.1",
"displayName": "Meshery Core",
"status": "",
"hostID": "00000000-0000-0000-0000-000000000000",
"category": {
"name": "Orchestration & Management",
"metadata": null
},
"metadata": {
"isAnnotation": false,
"published": true,
"subCategory": "App Definition and Development",
"svgColor": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE svg><svg xmlns=\"http://www.w3.org/2000/svg\" id=\"Layer_1\" data-name=\"Layer 1\" viewBox=\"0 0 134.95 135.02\" height=\"20\" width=\"20\"><defs xmlns=\"http://www.w3.org/2000/svg\"><style xmlns=\"http://www.w3.org/2000/svg\">.cls-1{fill:#00d3a9}.cls-2{fill:#00b39f}</style></defs><title xmlns=\"http://www.w3.org/2000/svg\">meshery-logo-light</title><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"69.49 31.82 69.49 64.07 97.44 47.89 69.49 31.82\" class=\"cls-1\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"69.49 70.81 69.49 103.22 97.7 87.09 69.49 70.81\" class=\"cls-1\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"65.47 63.85 65.47 32.09 37.87 47.92 65.47 63.85\" class=\"cls-2\"></polygon><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M10.1,103.1a67.79,67.79,0,0,0,21.41,21.55V90.71Z\" class=\"cls-2\"></path><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"65.47 103.06 65.47 71.05 37.8 87.07 65.47 103.06\" class=\"cls-2\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"35.54 122.63 63.56 106.61 35.54 90.41 35.54 122.63\" class=\"cls-1\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"99.61 122.8 99.61 90.63 71.63 106.63 99.61 122.8\" class=\"cls-2\"></polygon><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M127,99.37a67.22,67.22,0,0,0,7.91-28.94L105.78,87.11Z\" class=\"cls-2\"></path><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"103.64 83.69 131.76 67.61 103.64 51.45 103.64 83.69\" class=\"cls-1\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"99.61 44.5 99.61 12.52 71.76 28.49 99.61 44.5\" class=\"cls-2\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"99.61 83.55 99.61 51.28 71.7 67.44 99.61 83.55\" class=\"cls-2\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"67.48 135.02 67.49 135.02 67.48 135.02 67.48 135.02\" class=\"cls-2\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"35.54 51.22 35.54 83.73 63.66 67.45 35.54 51.22\" class=\"cls-1\"></polygon><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M65.47,0A67.2,67.2,0,0,0,35.83,7.83l29.64,17Z\" class=\"cls-2\"></path><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"35.54 12.3 35.54 44.62 63.68 28.48 35.54 12.3\" class=\"cls-1\"></polygon><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M31.51,10.34A67.89,67.89,0,0,0,10.1,31.89L31.51,44.25Z\" class=\"cls-2\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M99.43,8A67.23,67.23,0,0,0,69.49,0V25.15Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M0,69.87A67.27,67.27,0,0,0,8.07,99.63L29.76,87.07Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M8.07,35.37A67.16,67.16,0,0,0,0,65L29.79,47.91Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M35.78,127.13A67.13,67.13,0,0,0,65.47,135V110.15Z\" class=\"cls-2\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M124.92,32a67.9,67.9,0,0,0-21.28-21.52V44.3Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M103.64,124.54A68,68,0,0,0,125,102.86L103.64,90.52Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M135,64.81a67.06,67.06,0,0,0-8-29.35L105.49,47.88Z\" class=\"cls-2\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M69.49,135a67.12,67.12,0,0,0,29.63-7.83L69.49,110Z\" class=\"cls-1\"></path><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"31.51 83.44 31.51 51.56 3.83 67.43 31.51 83.44\" class=\"cls-2\"></polygon></svg>",
"svgComplete": "",
"svgWhite": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE svg><svg xmlns=\"http://www.w3.org/2000/svg\" id=\"Layer_1\" data-name=\"Layer 1\" viewBox=\"0 0 134.95 135.02\" height=\"20\" width=\"20\"><defs xmlns=\"http://www.w3.org/2000/svg\"><style xmlns=\"http://www.w3.org/2000/svg\">.cls-1{fill:#00d3a9}.cls-2{fill:#00b39f}</style></defs><title xmlns=\"http://www.w3.org/2000/svg\">meshery-logo-light</title><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"69.49 31.82 69.49 64.07 97.44 47.89 69.49 31.82\" class=\"cls-1\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"69.49 70.81 69.49 103.22 97.7 87.09 69.49 70.81\" class=\"cls-1\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"65.47 63.85 65.47 32.09 37.87 47.92 65.47 63.85\" class=\"cls-2\"></polygon><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M10.1,103.1a67.79,67.79,0,0,0,21.41,21.55V90.71Z\" class=\"cls-2\"></path><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"65.47 103.06 65.47 71.05 37.8 87.07 65.47 103.06\" class=\"cls-2\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"35.54 122.63 63.56 106.61 35.54 90.41 35.54 122.63\" class=\"cls-1\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"99.61 122.8 99.61 90.63 71.63 106.63 99.61 122.8\" class=\"cls-2\"></polygon><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M127,99.37a67.22,67.22,0,0,0,7.91-28.94L105.78,87.11Z\" class=\"cls-2\"></path><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"103.64 83.69 131.76 67.61 103.64 51.45 103.64 83.69\" class=\"cls-1\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"99.61 44.5 99.61 12.52 71.76 28.49 99.61 44.5\" class=\"cls-2\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"99.61 83.55 99.61 51.28 71.7 67.44 99.61 83.55\" class=\"cls-2\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"67.48 135.02 67.49 135.02 67.48 135.02 67.48 135.02\" class=\"cls-2\"></polygon><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"35.54 51.22 35.54 83.73 63.66 67.45 35.54 51.22\" class=\"cls-1\"></polygon><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M65.47,0A67.2,67.2,0,0,0,35.83,7.83l29.64,17Z\" class=\"cls-2\"></path><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"35.54 12.3 35.54 44.62 63.68 28.48 35.54 12.3\" class=\"cls-1\"></polygon><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M31.51,10.34A67.89,67.89,0,0,0,10.1,31.89L31.51,44.25Z\" class=\"cls-2\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M99.43,8A67.23,67.23,0,0,0,69.49,0V25.15Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M0,69.87A67.27,67.27,0,0,0,8.07,99.63L29.76,87.07Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M8.07,35.37A67.16,67.16,0,0,0,0,65L29.79,47.91Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M35.78,127.13A67.13,67.13,0,0,0,65.47,135V110.15Z\" class=\"cls-2\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M124.92,32a67.9,67.9,0,0,0-21.28-21.52V44.3Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M103.64,124.54A68,68,0,0,0,125,102.86L103.64,90.52Z\" class=\"cls-1\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M135,64.81a67.06,67.06,0,0,0-8-29.35L105.49,47.88Z\" class=\"cls-2\"></path><path xmlns=\"http://www.w3.org/2000/svg\" d=\"M69.49,135a67.12,67.12,0,0,0,29.63-7.83L69.49,110Z\" class=\"cls-1\"></path><polygon xmlns=\"http://www.w3.org/2000/svg\" points=\"31.51 83.44 31.51 51.56 3.83 67.43 31.51 83.44\" class=\"cls-2\"></polygon></svg>"
},
"components": null,
"relationships": null
}
}
14 changes: 9 additions & 5 deletions schemas/constructs/v1beta2-draft/draft-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"required": ["shape", "primaryColor", "svgColor", "svgWhite"],
"properties": {
// Future: extrapolate `capabilities` properties into first-class properties.
// define a proper json schema for capabilities
"capabilities": {
"type": "object",
"description": "Meshery manages components in accordance with their specific capabilities. This field explicitly identifies those capabilities largely by what actions a given component supports; e.g. metric-scrape, sub-interface, and so on. This field is extensible. ComponentDefinitions may define a broad array of capabilities, which are in-turn dynamically interpretted by Meshery for full lifecycle management."
Expand Down Expand Up @@ -96,12 +97,15 @@
"description": "Complete SVG of the component used for UI representation, often inclusive of background."
},
// This should probably becomes status as it is a mutable attribute of the component.
and would be an enum of:
// and would be an enum of:
"status" :[
"ignore",
"publish",
"duplicate" ,// this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the "duplicate" status.
"maintenance"
],// unavailable for a period of time

ignore
publish
duplicate // this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the "duplicate" status.
maintenance // unavailable for a period of time
// should be probably removed in favor of status
"published": {
"type": "boolean",
"description": "'published' controls whether the component should be registered in Meshery Registry. When the same 'published' property in Models, is set to 'false', the Model property takes precedence with all Entities in the Model not being registered."
Expand Down

0 comments on commit a428549

Please sign in to comment.