Skip to content

Commit 257ae90

Browse files
committed
init app database, make component sharable
1 parent 4f294c1 commit 257ae90

File tree

825 files changed

+24623
-18442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

825 files changed

+24623
-18442
lines changed

.firebase/hosting.ZGlzdFxhcHBzXG1peC1rYW5iYW4.cache

Lines changed: 2638 additions & 0 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
# dependencies
99
node_modules
1010

11+
.firebaserc
12+
firebase.json
13+
1114
# IDEs and editors
1215
/.idea
1316
.project
@@ -39,3 +42,5 @@ testem.log
3942
Thumbs.db
4043

4144
.angular
45+
46+
.nx/cache

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
/coverage
55

66
.angular
7+
8+
/.nx/cache
9+
10+
*.html

.vscode/settings.json

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"**/.git": true
1515
},
1616
"editor.codeActionsOnSave": {
17-
"source.fixAll.eslint": true,
18-
"source.organizeImports": true
17+
"source.fixAll.eslint": "explicit",
18+
"source.organizeImports": "explicit"
1919
},
2020
"files.watcherExclude": {
2121
"**/.git": true,
@@ -32,25 +32,13 @@
3232
},
3333
"typescript.preferences.quoteStyle": "single",
3434
"workbench.iconTheme": "vscode-icons",
35-
"cSpell.words": [
36-
"bravo",
37-
"ecommerce",
38-
"formly",
39-
"Kanban",
40-
"mixcore",
41-
"mixdb",
42-
"specificulture",
43-
"Tabler",
44-
"Transloco"
45-
],
46-
"tslint.alwaysShowRuleFailuresAsWarnings": false,
47-
"material-icon-theme.activeIconPack": "angular_ngrx"
48-
// "emeraldwalk.runonsave": {
49-
// "commands": [
50-
// {
51-
// "match": "\\.component.html$",
52-
// "cmd": "node ./tools/format-html-template.js --staged=true ${file}"
53-
// }
54-
// ]
55-
// }
35+
"material-icon-theme.activeIconPack": "angular_ngrx",
36+
"emeraldwalk.runonsave": {
37+
"commands": [
38+
{
39+
"match": "\\.component.html$",
40+
"cmd": "node ./tools/format-html-template.js --staged=true ${file}"
41+
}
42+
]
43+
}
5644
}

LICENSE

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# MIXCORE SOURCE AVAILABLE LICENSE v1.0
2+
3+
## PREAMBLE
4+
5+
This Mixcore Source Available License (the "License") sets forth the terms under which the Mixcore software and associated documentation files (the "Software") may be used, copied, modified, and distributed. This License is designed to preserve the open nature of the Software while protecting Mixcore's sustainability as an ongoing project.
6+
7+
## TERMS AND CONDITIONS
8+
9+
### 1. MIT LICENSE GRANT
10+
11+
Copyright © 2018-2025 Mixcore and Contributors
12+
13+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18+
19+
### 2. COMMONS CLAUSE LIMITATION
20+
21+
The MIT License permissions granted above are subject to the following restrictions:
22+
23+
Without limiting other conditions in this License, the grant of rights under this License will not include, and the License does not grant to you, the right to Sell the Software or to provide the Software as a part of a hosted, managed service, or online service where the primary value of such service is the availability of the Software.
24+
25+
For purposes of the foregoing:
26+
27+
"Sell" means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting, consulting, support, or managed services, or receiving revenue from advertising displayed within the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software.
28+
29+
This restriction does not apply to:
30+
1. Individual developers or small businesses with annual gross revenue under US $1,000,000
31+
2. Non-profit organizations and educational institutions
32+
3. Internal use within an organization, regardless of size, where the Software is not part of a service offered to external customers
33+
34+
### 3. TRADEMARK AND ATTRIBUTION REQUIREMENTS
35+
36+
In addition to the terms and conditions above, all uses of the Software are subject to the following attribution requirements:
37+
38+
a) All copies of the Software in Executable and Source Code form must include on each user interface screen the "powered by Mixcore CMS" text, which must be:
39+
i. Visible to all users
40+
ii. Appear in each user interface screen
41+
iii. Maintain consistent positioning across the application
42+
iv. Be clearly legible with reasonable contrast against its background
43+
44+
b) When users click on the "powered by Mixcore CMS" text, they must be directed to https://www.mixcore.org
45+
46+
c) The Mixcore name and logo are trademarks of Mixcore and may only be used in the required attribution and may not be used to promote or endorse derivative products without explicit written permission.
47+
48+
### 4. REVENUE TIER EXEMPTIONS
49+
50+
The restrictions in Section 2 (Commons Clause Limitation) and Section 3 (Trademark and Attribution Requirements) are automatically adjusted based on the annual gross revenue of the entity using the Software as follows:
51+
52+
a) **Tier 1: Under US $1,000,000 annual gross revenue**
53+
- Exempt from Commons Clause limitations
54+
- Must comply with attribution requirements
55+
56+
b) **Tier 2: US $1,000,000 to $10,000,000 annual gross revenue**
57+
- Subject to Commons Clause limitations
58+
- Must comply with attribution requirements
59+
- May obtain exemptions through Commercial License options
60+
61+
c) **Tier 3: Over US $10,000,000 annual gross revenue**
62+
- Subject to Commons Clause limitations
63+
- Must comply with attribution requirements
64+
- Commercial License required for any exemptions
65+
66+
### 5. GEOGRAPHICAL ADJUSTMENTS
67+
68+
The revenue tiers specified in Section 4 are adjusted based on location to account for economic differences across regions:
69+
70+
a) **High-income economies** (as defined by the World Bank): 100% of the stated thresholds
71+
72+
b) **Upper-middle-income economies**: 60% of the stated thresholds
73+
74+
c) **Lower-middle-income economies**: 30% of the stated thresholds
75+
76+
d) **Low-income economies**: 10% of the stated thresholds
77+
78+
The current classification of economies can be found on the World Bank website. The applicable classification at the time of initial Software acquisition applies for the duration of use unless a Commercial License specifies otherwise.
79+
80+
### 6. COMMERCIAL LICENSE OPTION
81+
82+
Entities wishing to be exempt from the Commons Clause limitations and/or the Trademark and Attribution Requirements may purchase a Commercial License from Mixcore. A Commercial License grants additional rights beyond this License and supersedes the restrictions in Sections 2, 3, 4, and 5 according to its terms.
83+
84+
Details about Commercial License options and pricing can be found at:
85+
https://www.mixcore.org/commercial-license
86+
87+
### 7. TERMINATION
88+
89+
This License automatically terminates if you fail to comply with any of its terms or conditions. Upon termination, you must destroy all copies of the Software in your possession.
90+
91+
### 8. ATTRIBUTION LICENSE
92+
93+
If you wish to be exempt solely from the attribution requirements in Section 3 while remaining subject to the Commons Clause in Section 2, you may purchase an Attribution License at a lower cost than a full Commercial License. Visit the Mixcore website for details.
94+
95+
### 9. CONTRIBUTION
96+
97+
Any contribution intentionally submitted for inclusion in the Software shall be subject to this License without any additional terms or conditions.
98+
99+
### 10. SEVERABILITY
100+
101+
If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
102+
103+
---
104+
105+
For questions regarding this License, please contact:
106+
107+
108+
For Commercial License inquiries, please contact:
109+

apps/mix-cms/project.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"prefix": "mix",
77
"targets": {
88
"build": {
9-
"executor": "@nx/angular:webpack-browser",
9+
"executor": "@angular-devkit/build-angular:browser",
1010
"outputs": ["{options.outputPath}"],
1111
"options": {
1212
"outputPath": "dist/apps/mix-cms",
@@ -33,6 +33,7 @@
3333
"styles": [
3434
"node_modules/@taiga-ui/core/styles/taiga-ui-theme.less",
3535
"node_modules/@taiga-ui/core/styles/taiga-ui-fonts.less",
36+
"libs/share-styles/src/index.scss",
3637
"apps/mix-cms/src/styles.scss"
3738
],
3839
"scripts": [],
@@ -46,10 +47,7 @@
4647
"dompurify"
4748
],
4849
"serviceWorker": true,
49-
"ngswConfigPath": "apps/mix-cms/ngsw-config.json",
50-
"customWebpackConfig": {
51-
"path": "apps/mix-cms/webpack.config.js"
52-
}
50+
"ngswConfigPath": "apps/mix-cms/ngsw-config.json"
5351
},
5452
"configurations": {
5553
"production": {
@@ -61,8 +59,8 @@
6159
},
6260
{
6361
"type": "anyComponentStyle",
64-
"maximumWarning": "3kb",
65-
"maximumError": "4kb"
62+
"maximumWarning": "30kb",
63+
"maximumError": "30kb"
6664
}
6765
],
6866
"fileReplacements": [
@@ -71,10 +69,7 @@
7169
"with": "apps/mix-cms/src/environments/environment.prod.ts"
7270
}
7371
],
74-
"outputHashing": "all",
75-
"customWebpackConfig": {
76-
"path": "apps/mix-cms/webpack.prod.config.js"
77-
}
72+
"outputHashing": "all"
7873
},
7974
"stage": {
8075
"budgets": [
@@ -85,8 +80,8 @@
8580
},
8681
{
8782
"type": "anyComponentStyle",
88-
"maximumWarning": "3kb",
89-
"maximumError": "4kb"
83+
"maximumWarning": "30kb",
84+
"maximumError": "30kb"
9085
}
9186
],
9287
"fileReplacements": [
@@ -106,8 +101,8 @@
106101
},
107102
{
108103
"type": "anyComponentStyle",
109-
"maximumWarning": "3kb",
110-
"maximumError": "4kb"
104+
"maximumWarning": "30kb",
105+
"maximumError": "30kb"
111106
}
112107
],
113108
"fileReplacements": [
@@ -133,18 +128,18 @@
133128
"executor": "@angular-devkit/build-angular:dev-server",
134129
"configurations": {
135130
"production": {
136-
"browserTarget": "mix-cms:build:production"
131+
"buildTarget": "mix-cms:build:production"
137132
},
138133
"development": {
139-
"browserTarget": "mix-cms:build:development"
134+
"buildTarget": "mix-cms:build:development"
140135
}
141136
},
142137
"defaultConfiguration": "development"
143138
},
144139
"extract-i18n": {
145140
"executor": "@angular-devkit/build-angular:extract-i18n",
146141
"options": {
147-
"browserTarget": "mix-cms:build"
142+
"buildTarget": "mix-cms:build"
148143
}
149144
},
150145
"lint": {
@@ -155,12 +150,17 @@
155150
},
156151
"test": {
157152
"executor": "@nrwl/jest:jest",
158-
"outputs": ["coverage/apps/mix-cms"],
153+
"outputs": ["{workspaceRoot}/coverage/apps/mix-cms"],
159154
"options": {
160155
"jestConfig": "apps/mix-cms/jest.config.ts",
161156
"passWithNoTests": true
162157
}
163158
}
164159
},
165-
"tags": []
160+
"tags": [],
161+
"schematics": {
162+
"@schematics/angular:component": {
163+
"style": "scss"
164+
}
165+
}
166166
}

0 commit comments

Comments
 (0)