sheel-deer 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/.vscode/launch.json +51 -0
  2. package/.vscode/settings.json +94 -0
  3. package/.vscode/tasks.json +57 -0
  4. package/App.elen +70 -0
  5. package/README.MD +0 -0
  6. package/Test.elen +24 -0
  7. package/compile-all-ts.js +76 -0
  8. package/dist/index.es.js +1 -0
  9. package/dist/index.umd.js +1 -0
  10. package/elen/App.elen +7 -0
  11. package/elen/LICENSE +15 -0
  12. package/elen/dist/extension.js +130 -0
  13. package/elen/dist/init.js +28 -0
  14. package/elen/elen-1.0.0.vsix +0 -0
  15. package/elen/extension.ts +122 -0
  16. package/elen/icon-theme.json +2423 -0
  17. package/elen/icon.svg +1 -0
  18. package/elen/images/icon.svg +1 -0
  19. package/elen/init.ts +28 -0
  20. package/elen/language-configuration.json +26 -0
  21. package/elen/package-lock.json +549 -0
  22. package/elen/package.json +52 -0
  23. package/elen/seti.woff +0 -0
  24. package/elen/src/App.elen +0 -0
  25. package/elen/syntaxes/elen.tmLanguage.json +312 -0
  26. package/elen/tsconfig.json +14 -0
  27. package/elen-icon-theme/LICENSE +15 -0
  28. package/elen-icon-theme/README.md +18 -0
  29. package/elen-icon-theme/elen-icon-theme-1.0.0.vsix +0 -0
  30. package/elen-icon-theme/elen-icon-theme-1.0.1.vsix +0 -0
  31. package/elen-icon-theme/elen-icon-theme-1.0.13.vsix +0 -0
  32. package/elen-icon-theme/elen-icon-theme-1.0.15.vsix +0 -0
  33. package/elen-icon-theme/elen-icon-theme-1.0.16.vsix +0 -0
  34. package/elen-icon-theme/elen-icon-theme-1.0.17.vsix +0 -0
  35. package/elen-icon-theme/elen-icon-theme-1.0.18.vsix +0 -0
  36. package/elen-icon-theme/elen-icon-theme-1.0.19.vsix +0 -0
  37. package/elen-icon-theme/elen-icon-theme-1.0.2.vsix +0 -0
  38. package/elen-icon-theme/elen-icon-theme-1.0.20.vsix +0 -0
  39. package/elen-icon-theme/elen-icon-theme-1.0.3.vsix +0 -0
  40. package/elen-icon-theme/elen-icon-theme-1.0.4.vsix +0 -0
  41. package/elen-icon-theme/elen-icon-theme-1.0.5.vsix +0 -0
  42. package/elen-icon-theme/elen-icon-theme-1.0.6.vsix +0 -0
  43. package/elen-icon-theme/elen-icon-theme-1.0.7.vsix +0 -0
  44. package/elen-icon-theme/elen-icon-theme-1.0.8.vsix +0 -0
  45. package/elen-icon-theme/elen-icon-theme-1.0.9.vsix +0 -0
  46. package/elen-icon-theme/extension.js +226 -0
  47. package/elen-icon-theme/icon-theme.json +2425 -0
  48. package/elen-icon-theme/icon.svg +1 -0
  49. package/elen-icon-theme/images/icon.svg +1 -0
  50. package/elen-icon-theme/package.json +36 -0
  51. package/elen-icon-theme/seti.woff +0 -0
  52. package/icon.svg +8 -0
  53. package/index.html +11 -0
  54. package/init-start-page.ts +59 -0
  55. package/logo.html +15 -0
  56. package/package.json +42 -0
  57. package/server.ts +31 -0
  58. package/shells/data-page/Elen.ts +23 -0
  59. package/squarings/.json +132 -0
  60. package/squarings/App.json +59 -0
  61. package/squarings/Test.json +27 -0
  62. package/src/base/Component.ts +113 -0
  63. package/src/classes/BinaryData.ts +81 -0
  64. package/src/classes/DataModel.ts +386 -0
  65. package/src/classes/DataTypes.ts +116 -0
  66. package/src/components/squaring.ts +226 -0
  67. package/src/components/vtm.ts +231 -0
  68. package/src/data/ascii.ts +134 -0
  69. package/src/data/binary-resources.ts +209 -0
  70. package/src/events/event-handler.js +34 -0
  71. package/src/index.ts +1 -0
  72. package/src/methods/app-template.ts +7 -0
  73. package/src/methods/array-helpers.ts +176 -0
  74. package/src/methods/css-template.ts +5 -0
  75. package/src/methods/errors-helpers.ts +26 -0
  76. package/src/methods/html-template.ts +22 -0
  77. package/src/methods/parsers.ts +1012 -0
  78. package/src/methods/square.ts +80 -0
  79. package/src/methods/ts-template.ts +36 -0
  80. package/src/methods/using-template.ts +3 -0
  81. package/src/models/ascii.ts +26 -0
  82. package/src/models/data-stream.ts +5 -0
  83. package/src/models/data-type-model.ts +22 -0
  84. package/src/models/template-binary-model.ts +5 -0
  85. package/src/routes.ts +9 -0
  86. package/syntaxes/enel.tmLanguage.json +28 -0
  87. package/tsconfig.json +68 -0
  88. package/viewController/Inital.elen +8 -0
  89. package/vite.config.ts +25 -0
  90. package/vue.config.js +30 -0
@@ -0,0 +1,80 @@
1
+ import { ComponentData, Data, DataProperty, ImportData, ImportProperty, Methods, NotationData } from "../components/squaring";
2
+
3
+ export class TsSquareMethods {
4
+ createComponentData(components: ComponentData[], notationData: NotationData[], methods: Methods[], imports: ImportData[]): Data {
5
+ const componentData = new Data();
6
+
7
+ componentData.components = components;
8
+ componentData.notations = notationData;
9
+ componentData.methods = methods;
10
+ componentData.imports = imports;
11
+
12
+ return componentData;
13
+ }
14
+
15
+ createSquareComponents(name: string, properties: DataProperty[], template: string, annotations: string[], version: string): ComponentData {
16
+ const component = new ComponentData();
17
+ component.name = name;
18
+ component.properties = properties;
19
+ component.template = template;
20
+ component.annotations = annotations;
21
+ component.version = version;
22
+ return component;
23
+ }
24
+
25
+ createSquareNotes(name: string, properties: DataProperty[], template: string, annotations: string[], version: string): NotationData {
26
+ const notation = new NotationData();
27
+ notation.name = name;
28
+ notation.properties = properties;
29
+ notation.template = template;
30
+ notation.annotations = annotations;
31
+ notation.version = version;
32
+ return notation;
33
+ }
34
+
35
+ createSquareMethods(name: string, type: string, value: any, parameters: any[], returnType: string): Methods {
36
+ const method = new Methods();
37
+ method.name = name;
38
+ method.type = type;
39
+ method.value = value;
40
+ method.parameters = parameters;
41
+ method.returnType = returnType;
42
+ return method;
43
+ }
44
+
45
+ createComponentProperty(name: string, type: string, value: any, nullable: boolean): DataProperty {
46
+ const property = new DataProperty();
47
+ property.name = name;
48
+ property.type = type;
49
+ property.value = value;
50
+ property.nullable = nullable;
51
+ return property;
52
+ }
53
+
54
+ createImportProperty(name: string, type: string, value: any, path: string): ImportProperty {
55
+ const property = new ImportProperty();
56
+ property.name = name;
57
+ property.type = type;
58
+ property.value = value;
59
+ property.path = path;
60
+ return property;
61
+ }
62
+
63
+ createNotationProperty(name: string, type: string, value: any): DataProperty {
64
+ const property = new DataProperty();
65
+ property.name = name;
66
+ property.type = type;
67
+ property.value = value;
68
+ return property;
69
+ }
70
+
71
+ createMethods(name: string, type: string, value: any, parameters: any[], returnType: string): Methods {
72
+ const method = new Methods();
73
+ method.name = name;
74
+ method.type = type;
75
+ method.value = value;
76
+ method.parameters = parameters;
77
+ method.returnType = returnType;
78
+ return method;
79
+ }
80
+ }
@@ -0,0 +1,36 @@
1
+ import ts from 'typescript';
2
+ import { DataStream } from '../models/data-stream';
3
+ import { createPage, fromPage, translateTS } from './parsers';
4
+ import { flatList } from './array-helpers';
5
+
6
+ export class TsTemplate {
7
+ createTsTemplate(number: number[], page: string, cssPage: string): DataStream {
8
+ const initPage = fromPage(`let page = new ${cssPage}();`);
9
+ const transformed = translateTS(number);
10
+
11
+ const merged: DataStream = {
12
+ type: 'ts',
13
+ data: [...initPage, 32, ...flatList(transformed)],
14
+ dataList: [...transformed, { arrays: [32] }, { arrays: initPage }]
15
+ };
16
+
17
+ const content = createPage(merged.dataList);
18
+ const output = ts.transpileModule(content, {
19
+ compilerOptions: {
20
+ module: ts.ModuleKind.CommonJS,
21
+ target: ts.ScriptTarget.ES2020,
22
+ },
23
+ reportDiagnostics: true,
24
+ });
25
+
26
+ if (output.diagnostics?.length) {
27
+ console.error(
28
+ output.diagnostics.map(d =>
29
+ ts.flattenDiagnosticMessageText(d.messageText, '\n')
30
+ )
31
+ );
32
+ }
33
+
34
+ return merged;
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ export class Using{
2
+
3
+ }
@@ -0,0 +1,26 @@
1
+ export class ASCIITable{
2
+ ascii: ASCIIRow[] = [];
3
+ }
4
+
5
+ export class ASCIIRow{
6
+ code: number = 0;
7
+ hex: string = '';
8
+ char: string = '';
9
+ name: string = '';
10
+ printable: boolean = false;
11
+ }
12
+
13
+ export class CurrentRow{
14
+ begin: boolean = false;
15
+ end: boolean = false;
16
+ find: boolean = false;
17
+ current: number = 0;
18
+ out: number = 0;
19
+ currentData: number[] = [];
20
+ currentDataBody: number[] = [];
21
+ lastDataBody: number[] = [];
22
+ }
23
+
24
+ export class ContentFile{
25
+ contentFile: string[] = [];
26
+ }
@@ -0,0 +1,5 @@
1
+ export class DataStream {
2
+ type: string = '';
3
+ data: number[] = [];
4
+ dataList: { arrays: number[] }[] = [];
5
+ }
@@ -0,0 +1,22 @@
1
+ export class DataComponentModel{
2
+ template: DataTypeModel = new DataTypeModel();
3
+ shell: DataTypeModel = new DataTypeModel();
4
+ visual: DataTypeModel = new DataTypeModel();
5
+ }
6
+
7
+ export class DataTypeModel{
8
+ name: string = '';
9
+ type: string = '';
10
+ byteTemplate: number[] = [];
11
+ startIndex: number = 0;
12
+ endIndex: number = 0;
13
+ }
14
+
15
+ ///translate
16
+ export class DataListType {
17
+ array: number[] = [];
18
+ }
19
+
20
+ export class DataList {
21
+ list: DataListType[] = [];
22
+ }
@@ -0,0 +1,5 @@
1
+ export class TemplateBinary {
2
+ name: string = '';
3
+ code: number = 0;
4
+ bitMap: number[] = [];
5
+ }
package/src/routes.ts ADDED
@@ -0,0 +1,9 @@
1
+ // import { Test } from "./../";
2
+ // import { ViewController } from "./components/squaring";
3
+
4
+ // using './base/Component';
5
+
6
+ // const router: ViewController = {
7
+ // name: "",
8
+ // components: [Test] as any[]
9
+ // }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "enel-template",
3
+ "scopeName": "source.enel",
4
+ "fileTypes": ["enel"],
5
+ "patterns": [
6
+ {
7
+ "name": "entity.name.tag.template.enel",
8
+ "match": "(<\/?template>)"
9
+ },
10
+ {
11
+ "name": "entity.name.tag.shell.enel",
12
+ "match": "(<\/?shell>)"
13
+ },
14
+ {
15
+ "name": "comment.block.enel",
16
+ "begin": "<!--",
17
+ "end": "-->",
18
+ "patterns": [
19
+ {
20
+ "name": "punctuation.definition.comment.enel",
21
+ "match": "-->|<!--"
22
+ }
23
+ ]
24
+ }
25
+ ],
26
+ "repository": {},
27
+ "uuid": "enel-template-highlight-schema"
28
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "include": [
3
+ "menu/**/*.ts",
4
+ "menu/**/*.d.ts",
5
+ "menu/**/*.tsx",
6
+ "menu/**/*.vue"
7
+ ],
8
+ // Visit https://aka.ms/tsconfig to read more about this file
9
+ "compilerOptions": {
10
+ "baseUrl": ".",
11
+ "paths": {
12
+ "@/*": ["menu/*"]
13
+ },
14
+ // File Layout
15
+ // "rootDir": "./src",
16
+ "outDir": "./dist",
17
+
18
+ // Environment Settings
19
+ // See also https://aka.ms/tsconfig/module
20
+ "module": "preserve",
21
+ "moduleResolution": "bundler",
22
+ "target": "esnext",
23
+ "types": [],
24
+ // For nodejs:
25
+ // "lib": ["esnext"],
26
+ // "types": ["node"],
27
+ // and npm install -D @types/node
28
+
29
+ // Other Outputs
30
+ "sourceMap": true,
31
+ "declaration": true,
32
+ "declarationMap": true,
33
+
34
+ // Stricter Typechecking Options
35
+ "noUncheckedIndexedAccess": true,
36
+ "exactOptionalPropertyTypes": false,
37
+
38
+ // Style Options
39
+ // "noImplicitReturns": true,
40
+ // "noImplicitOverride": true,
41
+ // "noUnusedLocals": true,
42
+ // "noUnusedParameters": true,
43
+ // "noFallthroughCasesInSwitch": true,
44
+ // "noPropertyAccessFromIndexSignature": true,
45
+
46
+ // Recommended Options
47
+ "strict": false,
48
+ "jsx": "react-jsx",
49
+ "verbatimModuleSyntax": true,
50
+ "isolatedModules": true,
51
+ "noUncheckedSideEffectImports": true,
52
+ "moduleDetection": "force",
53
+ "skipLibCheck": true,
54
+ }
55
+ }
56
+ // {
57
+ // "compilerOptions": {
58
+ // "target": "ES2020",
59
+ // "module": "commonjs",
60
+ // "outDir": "dist",
61
+ // "strict": true,
62
+ // "esModuleInterop": true,
63
+ // "forceConsistentCasingInFileNames": true,
64
+ // "skipLibCheck": true,
65
+ // "types": ["node"]
66
+ // },
67
+ // "include": ["*.ts", "*.enel"]
68
+ // }
@@ -0,0 +1,8 @@
1
+ using './../Test.elen';
2
+
3
+ ViewController controller =
4
+ {
5
+ name: "",
6
+ components: [Test] as any[]
7
+ }
8
+
package/vite.config.ts ADDED
@@ -0,0 +1,25 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
4
+
5
+ export default defineConfig({
6
+ plugins: [vue(), cssInjectedByJsPlugin({
7
+ relativeCSSInjection: false
8
+ })],
9
+ build: {
10
+ lib: {
11
+ entry: 'src/index.ts',
12
+ name: 'MenuPlate',
13
+ formats: ['es', 'umd'],
14
+ fileName: (format) => `index.${format}.js`
15
+ },
16
+ rollupOptions: {
17
+ external: ['vue'],
18
+ output: {
19
+ globals: {
20
+ vue: 'Vue'
21
+ }
22
+ }
23
+ }
24
+ }
25
+ })
package/vue.config.js ADDED
@@ -0,0 +1,30 @@
1
+ import { defineConfig } from "@vue/cli-service";
2
+
3
+ export default defineConfig({
4
+ transpileDependencies: true,
5
+ configureWebpack: {
6
+ entry: './menu/index.ts',
7
+ output: {
8
+ library: 'MenuPlate',
9
+ libraryTarget: 'umd',
10
+ filename: 'menu-plate.js',
11
+ globalObject: 'this'
12
+ },
13
+ externals: {
14
+ vue: 'Vue'
15
+ },
16
+ resolve: {
17
+ extensions: ['.ts', '.tsx', '.js', '.vue', '.json']
18
+ }
19
+ },
20
+ chainWebpack: config => {
21
+ config.optimization.delete('splitChunks')
22
+ config.plugins.delete('html')
23
+ config.plugins.delete('preload')
24
+ config.plugins.delete('prefetch')
25
+ config.entryPoints.delete('app')
26
+ },
27
+ css: {
28
+ extract: false
29
+ }
30
+ });