Skip to content

Commit e515a17

Browse files
committed
Use Ganymede as a Submodule and Admin account changes in Artemis
Signed-off-by: Bala Siva Sai Akhil Malepati <[email protected]>
1 parent 1ee8f12 commit e515a17

Some content is hidden

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

57 files changed

+87141
-18300
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "artemis/clarity/src/app/ganymede"]
2+
path = artemis/clarity/src/app/ganymede
3+
url = https://github.com/jovians/ganymede.git

artemis/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Generated contract ABIs need not be committed
2+
src/abis/**/*
3+
/src/abis/**/*
4+
node_modules

artemis/README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,40 @@ Follow the below link to get VMware Blockchain running on your local computer.
1818

1919
## Setup
2020

21-
Install application dependencies
21+
Install application dependencies (node v14 preferred)
2222

2323
```bash
24-
npm i -g @jovian/ganymede-clr
24+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
2525
```
26+
27+
Close the session and reopen and `nvm` command will be available to your system.
28+
2629
```bash
27-
npm install
30+
nvm install 14 # installs node v14
31+
nvm alias default 14 # sets default system node version to 14
32+
```
33+
34+
Install depedencies for contracts and UI:
35+
36+
```bash
37+
npm i # in project root
38+
39+
cd clarity; # in clarity folder (main UI)
40+
npm i
2841
```
42+
2943
Deploy contracts on Concord or any network by specifying network instead of development can use Ganaches or any other network.
3044
```bash
3145
truffle migrate --reset --network=development
3246
```
3347

3448
Deploy contracts on VMware Blockchain
3549
```bash
36-
truffle migrate --reset //Since default network is Concord
50+
truffle migrate --reset # Since default network is Concord
3751
```
3852
Run NFT Platform on clarity directory
3953
```bash
40-
gany set
41-
```
42-
```bash
43-
npm install
44-
```
45-
```bash
4654
npm run start
4755
```
4856

4957
Finally go to http://localhost:4200 to interact with the platform.
50-

artemis/clarity/.gitignore

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/dist-modules
6+
/dist-server
7+
/dist-server-deps
8+
/dist-electron
9+
/dist-electron-src
10+
/tmp
11+
/out-tsc
12+
# Only exists if Bazel was run
13+
/bazel-out
14+
15+
# dependencies
16+
/node_modules
17+
18+
# profiling files
19+
chrome-profiler-events*.json
20+
speed-measure-plugin*.json
21+
22+
# IDEs and editors
23+
/.idea
24+
.project
25+
.classpath
26+
.c9/
27+
*.launch
28+
.settings/
29+
*.sublime-workspace
30+
31+
# IDE - VSCode
32+
.vscode/*
33+
!.vscode/settings.json
34+
!.vscode/tasks.json
35+
!.vscode/launch.json
36+
!.vscode/extensions.json
37+
.history/*
38+
39+
# misc
40+
/.sass-cache
41+
/connect.lock
42+
/coverage
43+
/libpeerconnection.log
44+
npm-debug.log
45+
yarn-error.log
46+
testem.log
47+
/typings
48+
49+
# System Files
50+
.DS_Store
51+
Thumbs.db
52+
53+
# electron temp
54+
/electron/**/*.js
55+
/electron.js
56+
/electron-*.js
57+
58+
# Ganymede
59+
.build.uuid
60+
.ganymede.topology.json
61+
/ganymede.js
62+
ganymede.app.js
63+
ganymede.app.interface.js
64+
ganymede.app.interface.ts
65+
ganymede.patch.ts
66+
67+
# node.js profiles
68+
/isolate-*
69+
70+
# Angular cache
71+
/.angular
72+
73+
# secrets should not be committed
74+
ganymede.secrets.json
75+

artemis/clarity/angular.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"clarity": {
6+
"artemis": {
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
@@ -17,12 +17,15 @@
1717
"build": {
1818
"builder": "@angular-devkit/build-angular:browser",
1919
"options": {
20-
"outputPath": "dist/clarity",
20+
"outputPath": "dist/artemis",
2121
"index": "src/index.html",
2222
"main": "src/main.ts",
2323
"polyfills": "src/polyfills.ts",
2424
"tsConfig": "tsconfig.app.json",
2525
"aot": false,
26+
"optimization": false,
27+
"buildOptimizer": false,
28+
"sourceMap": true,
2629
"assets": [
2730
"src/assets",
2831
"src/favicon.ico",
@@ -33,17 +36,11 @@
3336
}
3437
],
3538
"styles": [
36-
"node_modules/@clr/icons/clr-icons.min.css",
37-
"node_modules/@clr/ui/clr-ui.min.css",
3839
"src/styles.scss"
3940
],
40-
"scripts": [
41-
"node_modules/@webcomponents/custom-elements/custom-elements.min.js",
42-
"node_modules/@clr/icons/clr-icons.min.js"
43-
],
41+
"scripts": [],
4442
"allowedCommonJsDependencies": [
45-
"web3",
46-
"@ethersproject/signing-key"
43+
4744
]
4845
},
4946
"configurations": {
@@ -54,7 +51,11 @@
5451
"with": "src/environments/environment.prod.ts"
5552
}
5653
],
57-
"optimization": true,
54+
"optimization": {
55+
"scripts": true,
56+
"fonts": { "inline": true },
57+
"styles": false
58+
},
5859
"outputHashing": "all",
5960
"sourceMap": false,
6061
"namedChunks": false,
@@ -80,18 +81,18 @@
8081
"serve": {
8182
"builder": "@angular-devkit/build-angular:dev-server",
8283
"options": {
83-
"browserTarget": "clarity:build"
84+
"browserTarget": "artemis:build"
8485
},
8586
"configurations": {
8687
"production": {
87-
"browserTarget": "clarity:build:production"
88+
"browserTarget": "artemis:build:production"
8889
}
8990
}
9091
},
9192
"extract-i18n": {
9293
"builder": "@angular-devkit/build-angular:extract-i18n",
9394
"options": {
94-
"browserTarget": "clarity:build"
95+
"browserTarget": "artemis:build"
9596
}
9697
},
9798
"test": {
@@ -133,18 +134,18 @@
133134
"builder": "@angular-devkit/build-angular:protractor",
134135
"options": {
135136
"protractorConfig": "e2e/protractor.conf.js",
136-
"devServerTarget": "clarity:serve"
137+
"devServerTarget": "artemis:serve"
137138
},
138139
"configurations": {
139140
"production": {
140-
"devServerTarget": "clarity:serve:production"
141+
"devServerTarget": "artemis:serve:production"
141142
}
142143
}
143144
}
144145
}
145146
}
146147
},
147-
"defaultProject": "clarity",
148+
"defaultProject": "artemis",
148149
"cli": {
149150
"analytics": "<ANGULAR_APP_CLI_ANALYTICS_TOKEN>"
150151
}

artemis/clarity/ganymede.app.interface.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ const baseVidPath = '/assets/vid';
77

88
const self = new Function('return this')();
99
const isNodeJs = self.btoa === undefined;
10-
10+
const useDestor = true;
1111
export interface GanymedeSecretsResolver {
12-
type: 'local-json-file' | 'server';
12+
type: 'local-json-file' | 'source-from-destor';
1313
jsonFile?: string;
14-
serverUrl?: string;
1514
}
1615

1716
export class GanymedeAppData {
@@ -48,9 +47,10 @@ export class GanymedeAppData {
4847

4948
extensions: GanymedeAppExtensions = {};
5049

51-
secretsResolution: GanymedeSecretsResolver = {
52-
type: 'local-json-file',
53-
jsonFile: 'ganymede.secrets.json'
50+
secretsResolution: GanymedeSecretsResolver = useDestor ? {
51+
type: 'source-from-destor',
52+
} : {
53+
type: 'local-json-file', jsonFile: 'ganymede.secrets.json'
5454
};
5555

5656
logger: any = null;
@@ -72,6 +72,8 @@ export class GanymedeAppData {
7272

7373
conf: any; // ganymede.conf.json content
7474

75+
theme = { base: 'CLARITY', type: 'LIGHT' };
76+
7577
constructor(initializer?: Partial<GanymedeAppData>) {
7678
if (initializer) {
7779
const defaultFeatures = this.features;
@@ -107,8 +109,8 @@ export interface GanymedeAppBase {
107109
modules?: {
108110
auth?: {
109111
type: string;
110-
host: string;
111-
port: number;
112+
host?: string;
113+
port?: number;
112114
},
113115
mailer?: {
114116
type: string;
@@ -127,8 +129,7 @@ export interface GanymedeAppExtensions {
127129
gcp?: { type?: string; list: any[]; };
128130
azure?: { type?: string; list: any[]; };
129131
vcenter?: { type?: string; list: any[]; };
130-
otherVms?: { type?: string; list: any[]; };
131-
};
132+
}
132133
}
133134
};
134135
external?: {

artemis/clarity/ganymede.app.ui.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ganymedeAppData } from './ganymede.app';
2-
import { HttpWrap } from './src/app/ganymede/components/util/http.wrapper';
3-
import { rx } from './src/app/ganymede/components/util/ngrx.stores';
2+
import { HttpWrap } from './src/app/ganymede/components/util/common/http.wrapper';
3+
import { rx } from './src/app/ganymede/components/util/common/ngrx.stores';
44
import { BasicContentsComponent } from './src/app/ganymede/components/pages/basic-contents/basic-contents.component';
55
import { DigitalArtsComponent } from 'src/app/routes/digital-arts/digital-arts.component';
66
import { LandingComponent } from 'src/app/routes/landing/landing.component';
@@ -35,6 +35,7 @@ ganymedeAppData.routes = [
3535
{ path: '**', component: BasicContentsComponent, data: { templateData: { layout: 'full' } }, }
3636
];
3737

38+
3839
export const appRoutes = ganymedeAppData.routes;
3940

4041
export const ngrxStores = rx.NgrxStoreRoot.getStores({
@@ -57,6 +58,10 @@ export const otherProviders = [
5758

5859
];
5960

61+
export const otherClarityIcons = [
62+
63+
];
64+
6065
HttpWrap.loadInitialIntercepts(http => {
6166

6267
});

0 commit comments

Comments
 (0)