@things-factory/operato-codelingua 6.1.66 → 7.0.8

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 (123) hide show
  1. package/README.md +66 -21
  2. package/_index.html +22 -13
  3. package/assets/images/hatiolab-logo.png +0 -0
  4. package/assets/images/user.png +0 -0
  5. package/assets/manifest.json +5 -5
  6. package/client/bootstrap.ts +199 -1
  7. package/client/icons/menu-icons.ts +91 -0
  8. package/client/pages/git-project/git-project-list-page.ts +334 -0
  9. package/client/route.ts +5 -7
  10. package/client/themes/dark.css +51 -0
  11. package/client/themes/light.css +51 -0
  12. package/client/viewparts/menu-tools.ts +170 -0
  13. package/client/viewparts/user-circle.ts +24 -0
  14. package/config/config.development.js +1 -5
  15. package/config/config.production.js +1 -5
  16. package/db.sqlite +0 -0
  17. package/dist-client/bootstrap.d.ts +7 -0
  18. package/dist-client/bootstrap.js +172 -0
  19. package/dist-client/bootstrap.js.map +1 -0
  20. package/dist-client/icons/menu-icons.d.ts +5 -0
  21. package/dist-client/icons/menu-icons.js +84 -0
  22. package/dist-client/icons/menu-icons.js.map +1 -0
  23. package/dist-client/index.d.ts +0 -0
  24. package/dist-client/index.js +2 -0
  25. package/dist-client/index.js.map +1 -0
  26. package/dist-client/pages/git-project/git-project-list-page.d.ts +53 -0
  27. package/dist-client/pages/git-project/git-project-list-page.js +318 -0
  28. package/dist-client/pages/git-project/git-project-list-page.js.map +1 -0
  29. package/dist-client/route.d.ts +1 -0
  30. package/dist-client/route.js +8 -0
  31. package/dist-client/route.js.map +1 -0
  32. package/dist-client/themes/dark.css +51 -0
  33. package/dist-client/themes/light.css +51 -0
  34. package/dist-client/tsconfig.tsbuildinfo +1 -0
  35. package/dist-client/viewparts/menu-tools.d.ts +17 -0
  36. package/dist-client/viewparts/menu-tools.js +172 -0
  37. package/dist-client/viewparts/menu-tools.js.map +1 -0
  38. package/dist-client/viewparts/user-circle.d.ts +5 -0
  39. package/dist-client/viewparts/user-circle.js +26 -0
  40. package/dist-client/viewparts/user-circle.js.map +1 -0
  41. package/dist-server/controllers/github-controller.d.ts +2 -0
  42. package/dist-server/controllers/github-controller.js +78 -0
  43. package/dist-server/controllers/github-controller.js.map +1 -0
  44. package/dist-server/controllers/index.d.ts +0 -0
  45. package/dist-server/index.d.ts +4 -0
  46. package/dist-server/index.js +3 -0
  47. package/dist-server/index.js.map +1 -1
  48. package/dist-server/middlewares/index.d.ts +1 -0
  49. package/dist-server/middlewares/index.js +7 -0
  50. package/dist-server/middlewares/index.js.map +1 -0
  51. package/dist-server/migrations/index.d.ts +1 -0
  52. package/dist-server/migrations/index.js +12 -0
  53. package/dist-server/migrations/index.js.map +1 -0
  54. package/dist-server/routers/github-webhook-router.d.ts +1 -0
  55. package/dist-server/routers/github-webhook-router.js +16 -0
  56. package/dist-server/routers/github-webhook-router.js.map +1 -0
  57. package/dist-server/routes.d.ts +1 -0
  58. package/dist-server/routes.js +4 -1
  59. package/dist-server/routes.js.map +1 -1
  60. package/dist-server/service/git-project/git-project-mutation.d.ts +10 -0
  61. package/dist-server/service/git-project/git-project-mutation.js +127 -0
  62. package/dist-server/service/git-project/git-project-mutation.js.map +1 -0
  63. package/dist-server/service/git-project/git-project-query.d.ts +11 -0
  64. package/dist-server/service/git-project/git-project-query.js +79 -0
  65. package/dist-server/service/git-project/git-project-query.js.map +1 -0
  66. package/dist-server/service/git-project/git-project-type.d.ts +20 -0
  67. package/dist-server/service/git-project/git-project-type.js +77 -0
  68. package/dist-server/service/git-project/git-project-type.js.map +1 -0
  69. package/dist-server/service/git-project/git-project.d.ts +22 -0
  70. package/dist-server/service/git-project/git-project.js +95 -0
  71. package/dist-server/service/git-project/git-project.js.map +1 -0
  72. package/dist-server/service/git-project/index.d.ts +6 -0
  73. package/dist-server/service/git-project/index.js +10 -0
  74. package/dist-server/service/git-project/index.js.map +1 -0
  75. package/dist-server/service/index.d.ts +5 -0
  76. package/dist-server/service/index.js +8 -3
  77. package/dist-server/service/index.js.map +1 -1
  78. package/dist-server/tsconfig.tsbuildinfo +1 -1
  79. package/helps/operato-codelingua/git-project.md +160 -0
  80. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +22 -12
  81. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +40 -0
  82. package/logs/application-2024-07-07-17.log +156 -0
  83. package/logs/application-2024-07-07-20.log +81 -0
  84. package/logs/application-2024-07-08-00.log +81 -0
  85. package/logs/application-2024-07-08-01.log +83 -0
  86. package/logs/application-2024-07-08-02.log +81 -0
  87. package/logs/application-2024-07-08-19.log +81 -0
  88. package/logs/connections-2024-07-07-17.log +41 -0
  89. package/logs/connections-2024-07-07-20.log +41 -0
  90. package/logs/connections-2024-07-08-00.log +41 -0
  91. package/logs/connections-2024-07-08-01.log +41 -0
  92. package/logs/connections-2024-07-08-02.log +41 -0
  93. package/logs/connections-2024-07-08-19.log +41 -0
  94. package/package.json +57 -18
  95. package/schema.graphql +4259 -0
  96. package/server/controllers/github-controller.ts +73 -0
  97. package/server/index.ts +4 -0
  98. package/server/middlewares/index.ts +3 -0
  99. package/server/migrations/index.ts +9 -0
  100. package/server/routers/github-webhook-router.ts +21 -0
  101. package/server/routes.ts +3 -1
  102. package/server/service/git-project/git-project-mutation.ts +136 -0
  103. package/server/service/git-project/git-project-query.ts +48 -0
  104. package/server/service/git-project/git-project-type.ts +55 -0
  105. package/server/service/git-project/git-project.ts +84 -0
  106. package/server/service/git-project/index.ts +7 -0
  107. package/server/service/index.ts +8 -0
  108. package/things-factory.config.js +8 -0
  109. package/translations/en.json +3 -1
  110. package/translations/ja.json +3 -1
  111. package/translations/ko.json +3 -1
  112. package/translations/ms.json +3 -1
  113. package/translations/zh.json +3 -1
  114. package/views/auth-page.html +14 -10
  115. package/views/public/home.html +14 -11
  116. package/client/pages/main.ts +0 -33
  117. package/client/themes/app-theme.css +0 -142
  118. package/config.development.js +0 -7
  119. package/logs/application-2023-06-25-11.log +0 -12
  120. package/logs/application-2023-06-25-12.log +0 -34
  121. package/logs/application-2023-06-25-13.log +0 -8
  122. package/schema.gql +0 -841
  123. package/things-factory.config.ts +0 -13
package/README.md CHANGED
@@ -1,37 +1,82 @@
1
- # Operato CodeLingua
1
+ # Codelingua
2
2
 
3
- ## Deciphering Code, Simplifying Understanding
3
+ **Revolutionizing Software Development: Work Smarter, Code Better**
4
4
 
5
- CodeLingua is a revolutionary service that deciphers technical system responses and translates them into understandable language. Leveraging the power of AI, CodeLingua turns cryptic error codes and system messages into user-friendly explanations. This facilitates a more efficient and user-friendly approach to technical troubleshooting and system understanding.
5
+ ## Introduction
6
6
 
7
- ### Features:
7
+ Codelingua is the ultimate project automation solution for developers. By leveraging GitHub hooks, Codelingua automates documentation, code reviews, translations, and content generation, allowing developers to focus on what matters most.
8
8
 
9
- - **System Error Translation**: Convert technical system error codes and messages into user-friendly language.
10
- - **Integration with Various Systems**: Compatible with various external systems like databases, middleware, platform services, etc.
11
- - **AI-Powered Interpretation**: Utilizes OpenAI's GPT models to interpret and explain complex system messages.
9
+ ## Features
12
10
 
13
- ### Getting Started:
11
+ - **Documentation Automation**: Automatically update documentation based on code changes to keep everything up-to-date.
12
+ - **Code Review Automation**: Perform automated code reviews to ensure code quality by detecting style and rule violations.
13
+ - **Translation Automation**: Manage and automate translations within your code for seamless multilingual support.
14
+ - **Content Generation**: Automatically generate content such as release notes and changelogs, saving developers time on documentation tasks.
14
15
 
15
- To get started with CodeLingua, follow these steps:
16
+ ## Benefits
16
17
 
17
- 1. **Installation**: Download or clone this repository to your local system.
18
- 2. **Setup**: Install all the required dependencies by running `npm install` in the project root directory.
19
- 3. **Usage**: Start the service by running `npm start` in the project root directory.
18
+ - **Time Savings**: Automate repetitive tasks so developers can focus on core functionalities.
19
+ - **Consistency**: Maintain consistency across all documents and code with automated tools.
20
+ - **Multilingual Support**: Easily manage projects in multiple languages with the translation feature.
21
+ - **Increased Efficiency**: Enhance development speed and quality through streamlined workflows.
20
22
 
21
- ### Contributing:
23
+ ## Getting Started
22
24
 
23
- Contributions to CodeLingua are always welcome. Whether it's feature enhancements, bug fixes, or design improvements, we appreciate all help! For major changes, please open an issue first to discuss what you would like to change.
25
+ ### Prerequisites
24
26
 
25
- ### License:
27
+ - [Git](https://git-scm.com/)
28
+ - [Node.js](https://nodejs.org/)
29
+ - [GitHub Account](https://github.com/)
26
30
 
27
- [MIT](https://choosealicense.com/licenses/mit/)
31
+ ### Installation
28
32
 
29
- ### Contact:
33
+ 1. Clone the repository:
34
+ ```bash
35
+ git clone https://github.com/yourusername/codelingua.git
36
+ ```
37
+ 2. Navigate to the project directory:
38
+ ```bash
39
+ cd codelingua
40
+ ```
41
+ 3. Install dependencies:
42
+ ```bash
43
+ npm install
44
+ ```
30
45
 
31
- For any questions or concerns, please open an issue on this repository, and we will try to respond as soon as possible.
46
+ ### Configuration
32
47
 
33
- Note: This project is in its early stage, and we appreciate your patience and support as we work towards a more complete and robust solution.
48
+ 1. Set up your GitHub repository with the necessary webhooks.
49
+ 2. Configure the `config.json` file with your project details and GitHub settings.
34
50
 
35
- CodeLingua is proudly built on top of the [Things-Factory framework](https://www.hatiolab.com/things-factory.html) by [Hatiolab](https://www.hatiolab.com).
51
+ ### Usage
36
52
 
37
- Join us in our journey of translating code into language for everyone to understand!
53
+ - **Start the application**:
54
+ ```bash
55
+ npm start
56
+ ```
57
+ - **Run automated tasks**:
58
+ ```bash
59
+ npm run automate
60
+ ```
61
+
62
+ ## Contributing
63
+
64
+ We welcome contributions! Please follow these steps:
65
+
66
+ 1. Fork the repository.
67
+ 2. Create a new branch (`git checkout -b feature/your-feature`).
68
+ 3. Commit your changes (`git commit -m 'Add some feature'`).
69
+ 4. Push to the branch (`git push origin feature/your-feature`).
70
+ 5. Open a pull request.
71
+
72
+ ## License
73
+
74
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
75
+
76
+ ## Contact
77
+
78
+ For any questions or feedback, please contact us at [heartyoh@hatiolab.com](mailto:heartyoh@hatiolab.com).
79
+
80
+ ---
81
+
82
+ Thank you for using Codelingua! Let's revolutionize software development together.
package/_index.html CHANGED
@@ -1,11 +1,12 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Codelingua</title>
5
+ <meta name="google" content="notranslate" />
6
+ <title>Operato-Codelingua</title>
6
7
  <meta name="generator" content="Things Factory Starter Kit" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- <meta name="description" content="Deciphering Code, Simplifying Understanding" />
8
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
9
+ <meta name="description" content="Revolutionizing Software Development: Work Smarter, Code Better" />
9
10
 
10
11
  <base href="/" />
11
12
 
@@ -15,19 +16,19 @@
15
16
  <link rel="manifest" href="/assets/manifest.json" />
16
17
 
17
18
  <!-- See https://goo.gl/qRE0vM -->
18
- <meta name="theme-color" content="#22a6a7" />
19
+ <meta name="theme-color" content="#6d5e0f" />
19
20
 
20
21
  <!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
21
22
  <meta name="mobile-web-app-capable" content="yes" />
22
- <meta name="application-name" content="Codelingua" />
23
- <meta name="application-description" content="Deciphering Code, Simplifying Understanding" />
23
+ <meta name="application-name" content="Operato-Codelingua" />
24
+ <meta name="application-description" content="Revolutionizing Software Development: Work Smarter, Code Better" />
24
25
  <meta name="application-copyright" content="Copyright © hatiolab.com. All Rights Reserved." />
25
26
  <link rel="application-icon" href="/assets/manifest/icon-96x96.png" />
26
27
 
27
28
  <!-- Add to homescreen for Safari on iOS -->
28
29
  <meta name="apple-mobile-web-app-capable" content="yes" />
29
30
  <meta name="apple-mobile-web-app-status-bar-style" content="default" />
30
- <meta name="apple-mobile-web-app-title" content="Codelingua" />
31
+ <meta name="apple-mobile-web-app-title" content="Operato-Codelingua" />
31
32
 
32
33
  <!-- Homescreen icons -->
33
34
  <link rel="apple-touch-icon" href="/assets/manifest/icon-48x48.png" />
@@ -38,33 +39,41 @@
38
39
 
39
40
  <!-- Tile icon for Windows 8 (144x144 + tile color) -->
40
41
  <meta name="msapplication-TileImage" content="/assets/manifest/icon-144x144.png" />
41
- <meta name="msapplication-TileColor" content="#3f51b5" />
42
+ <meta name="msapplication-TileColor" content="#6d5e0f" />
42
43
  <meta name="msapplication-tap-highlight" content="no" />
43
44
 
44
45
  <!-- Default twitter cards -->
45
46
  <meta name="twitter:card" content="summary" />
46
47
  <meta name="twitter:site" content="@username" />
47
48
  <meta property="og:type" content="website" />
48
- <meta property="og:site_name" content="Codelingua, Deciphering Code, Simplifying Understanding." />
49
+ <meta
50
+ property="og:site_name"
51
+ content="Operato-Codelingua, Revolutionizing Software Development: Work Smarter, Code Better."
52
+ />
49
53
  <meta property="og:image" content="/assets/manifest/image-metaog.png" />
50
54
 
51
55
  <!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
52
56
  <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
53
57
  <link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
58
+ <link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
59
+ <link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
60
+ <link rel="stylesheet" href="/theme.css" />
54
61
 
55
- <!-- Add any global styles for body, document, etc. -->
56
62
  <style>
57
63
  body {
58
64
  margin: 0;
59
65
  padding: 0;
60
66
  overflow: hidden;
61
67
 
68
+ overscroll-behavior-y: none;
69
+
62
70
  /* This is a font-stack that tries to use the system-default sans-serifs first */
63
71
  font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
64
72
  line-height: 1.5;
65
73
  -webkit-font-smoothing: antialiased;
66
74
 
67
- accent-color: var(--primary-color);
75
+ accent-color: var(--md-sys-color-primary);
76
+ background-color: var(--md-sys-color-background);
68
77
  }
69
78
  </style>
70
79
 
@@ -77,7 +86,7 @@
77
86
  </script>
78
87
  </head>
79
88
 
80
- <body>
89
+ <body class="light">
81
90
  <things-app></things-app>
82
91
  <noscript> Please enable JavaScript to view this website. </noscript>
83
92
  <!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "Codelingua",
3
- "short_name": "Codelingua",
4
- "description": "Deciphering Code, Simplifying Understanding",
2
+ "name": "Operato-Codelingua",
3
+ "short_name": "Operato-Codelingua",
4
+ "description": "Operato-Codelingua",
5
5
  "icons": [
6
6
  {
7
7
  "src": "manifest/icon-192x192.png",
@@ -22,6 +22,6 @@
22
22
  ],
23
23
  "start_url": "/",
24
24
  "display": "standalone",
25
- "theme_color": "#3f51b5",
26
- "background_color": "#3f51b5"
25
+ "theme_color": "#6d5e0f",
26
+ "background_color": "#6d5e0f"
27
27
  }
@@ -1 +1,199 @@
1
- export default function bootstrap() {}
1
+ import '@things-factory/notification'
2
+ import '@things-factory/board-ui'
3
+ import '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */
4
+ import '@operato/i18n/ox-i18n.js'
5
+
6
+ import './viewparts/user-circle'
7
+ import './viewparts/menu-tools'
8
+
9
+ import { html } from 'lit'
10
+
11
+ import { registerDefaultGroups } from '@operato/board/register-default-groups.js'
12
+ import { appendViewpart, toggleOverlay, TOOL_POSITION, updateViewpart, VIEWPART_POSITION } from '@operato/layout'
13
+ import { APPEND_APP_TOOL, REMOVE_APP_TOOL } from '@things-factory/apptool-base/client'
14
+ import { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'
15
+ import { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'
16
+ import { setupContextUIPart } from '@things-factory/context-ui/dist-client'
17
+ import { ADD_MORENDA } from '@things-factory/more-base/client'
18
+ import { ADD_SETTING } from '@things-factory/setting-base/dist-client'
19
+ import { navigate, store } from '@operato/shell'
20
+
21
+ console.log(
22
+ `%c
23
+ ____ _ _ _
24
+ / __\\ ___ __| | __ | | (_)_ __ __ _ _ _ __ _
25
+ | | / _ \\ / _\` |/ _ \\ | | | | '_ \\ / _\` | | | |/ _\` |
26
+ | |__| (_) | (_| | __/ | |___| | | | | (_| | |_| | (_| |
27
+ \\____/\\___/ \\__,_|\\___| |_____|_|_| |_|\\__, |\\__,_|\\__,_|
28
+ |___/
29
+ `,
30
+ 'background: #222; color: #bada55'
31
+ )
32
+
33
+ export default async function bootstrap() {
34
+ /*
35
+ set board-modeller group and default templates - should be called befor BoardModeller open
36
+ */
37
+ registerDefaultGroups()
38
+
39
+ await setupAppToolPart({
40
+ toolbar: true,
41
+ busybar: true,
42
+ mdibar: true
43
+ })
44
+
45
+ await setupContextUIPart({
46
+ titlebar: 'header',
47
+ contextToolbar: 'page-footer'
48
+ })
49
+
50
+ /* add setting morenda */
51
+ store.dispatch({
52
+ type: ADD_MORENDA,
53
+ morenda: {
54
+ icon: html` <md-icon>settings</md-icon> `,
55
+ name: html` <ox-i18n msgid="label.setting"></ox-i18n> `,
56
+ action: () => {
57
+ navigate('setting')
58
+ }
59
+ }
60
+ })
61
+
62
+ /* set auth management menus into more-panel */
63
+ setAuthManagementMenus()
64
+
65
+ /* get fleets information from the start */
66
+
67
+ store.dispatch({
68
+ type: ADD_MORENDA,
69
+ morenda: {
70
+ icon: html` <md-icon>help</md-icon> `,
71
+ name: html` <ox-i18n msgid="text.help"></ox-i18n> `,
72
+ action: () => {
73
+ navigate('help')
74
+ }
75
+ }
76
+ })
77
+
78
+ /* append viewpart anchor to asidebar */
79
+ appendViewpart({
80
+ name: 'asidebar-anchor',
81
+ viewpart: {
82
+ show: false,
83
+ hovering: 'edge',
84
+ backdrop: true
85
+ },
86
+ position: VIEWPART_POSITION.ASIDEBAR
87
+ })
88
+
89
+ /* append top-menu to layout */
90
+ var state = store.getState() as any
91
+ var width = state.layout?.width || 'WIDE'
92
+
93
+ if (width == 'WIDE') {
94
+ store.dispatch({
95
+ type: APPEND_APP_TOOL,
96
+ tool: {
97
+ name: 'app-brand',
98
+ template: html` <span style="font-size: 1.2em;">Code Lingua</span> `,
99
+ position: TOOL_POSITION.FRONT
100
+ }
101
+ })
102
+ }
103
+
104
+ appendViewpart({
105
+ name: 'fleet-topmenu',
106
+ viewpart: {
107
+ show: true,
108
+ template: html` <menu-tools></menu-tools> `
109
+ },
110
+ position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
111
+ })
112
+
113
+ store.subscribe(async () => {
114
+ var state = store.getState() as any
115
+
116
+ if (state.layout.width == width) {
117
+ return
118
+ }
119
+
120
+ width = state.layout.width
121
+
122
+ store.dispatch({
123
+ type: width == 'WIDE' ? APPEND_APP_TOOL : REMOVE_APP_TOOL,
124
+ name: 'app-brand',
125
+ tool: {
126
+ name: 'app-brand',
127
+ template: html` <span style="font-size: 1.2em;">Code Lingua</span> `,
128
+ position: TOOL_POSITION.FRONT
129
+ }
130
+ })
131
+
132
+ updateViewpart('fleet-topmenu', {
133
+ position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
134
+ })
135
+ })
136
+
137
+ /* setting app-tools */
138
+ store.dispatch({
139
+ type: APPEND_APP_TOOL,
140
+ tool: {
141
+ name: 'notification-badge',
142
+ template: html`
143
+ <notification-badge
144
+ @click=${e => {
145
+ toggleOverlay('notification', {
146
+ backdrop: true
147
+ })
148
+ }}
149
+ >
150
+ </notification-badge>
151
+ `,
152
+ position: TOOL_POSITION.REAR
153
+ }
154
+ })
155
+
156
+ appendViewpart({
157
+ name: 'notification',
158
+ viewpart: {
159
+ show: false,
160
+ hovering: 'edge',
161
+ template: html` <notification-list style="min-width: 300px;"></notification-list> `
162
+ },
163
+ position: VIEWPART_POSITION.ASIDEBAR
164
+ })
165
+
166
+ store.dispatch({
167
+ type: APPEND_APP_TOOL,
168
+ tool: {
169
+ name: 'user-circle',
170
+ template: html` <user-circle> </user-circle> `,
171
+ position: TOOL_POSITION.REAR
172
+ }
173
+ })
174
+
175
+ /* for settings */
176
+ store.dispatch({
177
+ type: ADD_SETTING,
178
+ setting: {
179
+ seq: 10,
180
+ template: html` <theme-mode-setting-let></theme-mode-setting-let> `
181
+ }
182
+ })
183
+
184
+ store.dispatch({
185
+ type: ADD_SETTING,
186
+ setting: {
187
+ seq: 20,
188
+ template: html` <infowindow-setting-let></infowindow-setting-let> `
189
+ }
190
+ })
191
+
192
+ store.dispatch({
193
+ type: ADD_SETTING,
194
+ setting: {
195
+ seq: 20,
196
+ template: html` <notification-setting-let></notification-setting-let> `
197
+ }
198
+ })
199
+ }
@@ -0,0 +1,91 @@
1
+ const ICON_PROGRESS = `
2
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
3
+ <defs>
4
+ <style>
5
+ .menu-svg {
6
+ fill: #fff;
7
+ stroke: {{strokecolor}};
8
+ stroke-width: 0px;
9
+ }
10
+ </style>
11
+ </defs>
12
+
13
+ <path class="menu-svg" d="M31,36.5c-.2,0-.4,0-.6,0-.2,0-.3-.2-.5-.3l-8.3-8.3c-.2-.2-.3-.3-.3-.5,0-.2,0-.4,0-.6s0-.4,0-.6c0-.2.2-.3.3-.5l3.1-3.1c.2-.2.3-.3.5-.3.2,0,.4,0,.6,0s.4,0,.6,0c.2,0,.3.2.5.3l8.3,8.3c.2.2.3.3.3.5,0,.2,0,.4,0,.6s0,.4,0,.6c0,.2-.2.3-.3.5l-3.1,3.1c-.2.2-.3.3-.5.3-.2,0-.4,0-.6,0ZM31,33.6l1.8-1.8-6.9-6.9-1.8,1.8,6.9,6.9ZM8.9,36.5c-.2,0-.4,0-.6-.1-.2,0-.3-.2-.5-.3l-3.1-3.1c-.2-.2-.3-.3-.3-.5,0-.2-.1-.4-.1-.6s0-.4.1-.6c0-.2.2-.3.3-.5l8.6-8.6h3.5l1.3-1.3-6.9-6.9h-2.4l-4.6-4.6,4.1-4.1,4.6,4.6v2.4l6.9,6.9,4.9-4.9-2.4-2.4,2.1-2.1h-4.2l-.9-.9,5.3-5.3.9.9v4.2l2.1-2.1,6.2,6.2c.4.4.8.9,1,1.5.2.5.3,1.1.3,1.7s0,1-.3,1.5c-.2.5-.5.9-.8,1.4l-3.5-3.5-2.3,2.3-1.8-1.8-8,8v3.5l-8.6,8.6c-.2.2-.3.3-.5.3-.2,0-.4.1-.6.1ZM8.9,33.6l7.6-7.6v-1.8h-1.8l-7.6,7.6,1.8,1.8ZM8.9,33.6l-1.8-1.8.9.9.9.9ZM31,33.6l1.8-1.8-1.8,1.8Z"/>
14
+ </svg>
15
+ `
16
+
17
+ const ICON_COMPLETED = `
18
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
19
+ <defs>
20
+ <style>
21
+ .menu-svg {
22
+ fill: #fff;
23
+ stroke: {{strokecolor}};
24
+ stroke-width: 0px;
25
+ }
26
+ </style>
27
+ </defs>
28
+
29
+ <path class="menu-svg" d="M27.9,15.1h2.7v-2.8h-2.7v2.8ZM27.9,21.4h2.7v-2.8h-2.7v2.8ZM27.9,27.7h2.7v-2.8h-2.7v2.8ZM26.9,33.3v-2.4h6.9V9h-14.2v2.8l-2.3-1.7v-3.5h18.7v26.7s-9.1,0-9.1,0ZM4,33.3v-14.5l9.9-7.3,9.9,7.3v14.5h-8.1v-7.5h-3.5v7.5H4ZM6.3,31h3.6v-7.5h8v7.5h3.6v-11l-7.7-5.5-7.7,5.5v11h0ZM18,31v-7.5h-8v7.5-7.5h8v7.5Z"/>
30
+ </svg>
31
+ `
32
+
33
+ const ICON_STATUS = `
34
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
35
+ <defs>
36
+ <style>
37
+ .menu-svg {
38
+ fill: #fff;
39
+ stroke: {{strokecolor}};
40
+ stroke-width: 0px;
41
+ }
42
+ </style>
43
+ </defs>
44
+
45
+ <path class="menu-svg" d="M7.4,33.9c-.8,0-1.5-.3-2.1-.8-.6-.6-.8-1.3-.8-2.1V9c0-.8.3-1.5.8-2.1.6-.6,1.3-.8,2.1-.8h25.2c.8,0,1.5.3,2.1.8s.8,1.3.8,2.1v21.9c0,.8-.3,1.5-.8,2.1s-1.3.8-2.1.8H7.4ZM7.4,31.4h25.2c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4V9c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H7.4c0,0-.3,0-.4.2,0,0-.2.2-.2.4v21.9c0,0,0,.3.2.4,0,0,.2.2.4.2h0ZM8.9,27.7h7.3v-2.4h-7.3v2.4ZM24.2,24.3l7.5-7.5-1.8-1.8-5.7,5.8-2.4-2.4-1.7,1.8s4.1,4.1,4.1,4.1ZM8.9,21.2h7.3v-2.4h-7.3v2.4ZM8.9,14.6h7.3v-2.4h-7.3s0,2.4,0,2.4ZM6.9,31.4V8.5v22.9Z"/>
46
+ </svg>
47
+ `
48
+
49
+ const ICON_OPERATING = `
50
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
51
+ <defs>
52
+ <style>
53
+ .menu-svg {
54
+ fill: #fff;
55
+ stroke: {{strokecolor}};
56
+ stroke-width: 0px;
57
+ }
58
+ </style>
59
+ </defs>
60
+
61
+ <path class="menu-svg" d="M9.1,35.5c-.8,0-1.5-.3-2.1-.8-.6-.6-.8-1.2-.8-2.1V10.9c0-.8.3-1.5.8-2.1.6-.6,1.2-.8,2.1-.8h2.3v-3.5h2.5v3.5h12.3v-3.5h2.4v3.5h2.3c.8,0,1.5.3,2.1.8.6.6.8,1.2.8,2.1v21.7c0,.8-.3,1.5-.8,2.1s-1.2.8-2.1.8c0,0-21.8,0-21.8,0ZM9.1,33.1h21.7c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4v-15.2H8.5v15.2c0,0,0,.3.2.4,0,0,.2.2.4.2ZM8.5,14.9h22.7v-4c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H9.1c0,0-.3,0-.4.2,0,0-.2.2-.2.4,0,0,0,4,0,4ZM8.5,14.9v-4.5,4.5ZM12.2,22.9v-2.4h15.4v2.4s-15.4,0-15.4,0ZM12.2,29.4v-2.4h10.5v2.4h-10.5Z"/>
62
+ </svg>
63
+ `
64
+
65
+ const ICON_SETTING = `
66
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40">
67
+ <defs>
68
+ <style>
69
+ .menu-svg {
70
+ fill: #fff;
71
+ stroke: {{strokecolor}};
72
+ stroke-width: 0px;
73
+ }
74
+ </style>
75
+ </defs>
76
+
77
+ <path class="menu-svg" d="M13.1,24.2h2v-5.7h-2v1.9h-2.4v2h2.4v1.9h0ZM16.7,22.3h12.8v-2h-12.8v2ZM25,18.1h2v-1.9h2.4v-2h-2.4v-1.9h-2v5.7h0ZM10.6,16.2h12.8v-2h-12.8v2ZM14.3,34v-3.3h-6.9c-.8,0-1.5-.3-2.1-.8s-.8-1.3-.8-2.1V8.9c0-.8.3-1.6.8-2.1.6-.5,1.3-.8,2.1-.8h25.2c.8,0,1.5.3,2.1.8s.8,1.3.8,2.1v18.8c0,.8-.3,1.6-.8,2.1-.6.5-1.3.8-2.1.8h-6.9v3.3h-11.5,0ZM7.5,28.2h25.2c0,0,.3,0,.4-.2,0,0,.2-.2.2-.4V8.9c0,0,0-.3-.2-.4,0,0-.2-.2-.4-.2H7.5c0,0-.3,0-.4.2,0,0-.2.2-.2.4v18.8c0,0,0,.3.2.4,0,0,.2.2.4.2h0ZM6.9,28.2V8.4v19.8Z"/>
78
+ </svg>
79
+ `
80
+
81
+ function icons(template) {
82
+ return ['#ffffff', '#64A3D9'].map(
83
+ color => 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(template.replace(/{{strokecolor}}/g, color))
84
+ )
85
+ }
86
+
87
+ export const ICONS_PROGRESS = icons(ICON_PROGRESS)
88
+ export const ICONS_COMPLETED = icons(ICON_COMPLETED)
89
+ export const ICONS_STATUS = icons(ICON_STATUS)
90
+ export const ICONS_OPERATING = icons(ICON_OPERATING)
91
+ export const ICONS_SETTING = icons(ICON_SETTING)