@antelopejs/dms-antelope-cloud 0.0.0 → 0.1.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.
- package/LICENSE +201 -0
- package/README.md +448 -0
- package/dist/cloud-status.d.ts +13 -0
- package/dist/cloud-status.js +77 -0
- package/dist/config.d.ts +84 -0
- package/dist/config.js +104 -0
- package/dist/configured.d.ts +16 -0
- package/dist/configured.js +26 -0
- package/dist/connection/actions.d.ts +40 -0
- package/dist/connection/actions.js +120 -0
- package/dist/connection/announce.d.ts +8 -0
- package/dist/connection/announce.js +20 -0
- package/dist/connection/cloud.d.ts +60 -0
- package/dist/connection/cloud.js +87 -0
- package/dist/connection/content.d.ts +70 -0
- package/dist/connection/content.js +462 -0
- package/dist/connection/current.d.ts +26 -0
- package/dist/connection/current.js +28 -0
- package/dist/connection/device-flow.d.ts +16 -0
- package/dist/connection/device-flow.js +146 -0
- package/dist/connection/refusals.d.ts +51 -0
- package/dist/connection/refusals.js +85 -0
- package/dist/connection/repository.d.ts +28 -0
- package/dist/connection/repository.js +69 -0
- package/dist/connection/seal.d.ts +22 -0
- package/dist/connection/seal.js +47 -0
- package/dist/connection/store.d.ts +294 -0
- package/dist/connection/store.js +165 -0
- package/dist/connection/view.d.ts +39 -0
- package/dist/connection/view.js +39 -0
- package/dist/dashboard/actions.d.ts +40 -0
- package/dist/dashboard/actions.js +115 -0
- package/dist/dashboard/dockerfile.d.ts +34 -0
- package/dist/dashboard/dockerfile.js +71 -0
- package/dist/dashboard/service.d.ts +61 -0
- package/dist/dashboard/service.js +137 -0
- package/dist/dashboard/variables.d.ts +30 -0
- package/dist/dashboard/variables.js +34 -0
- package/dist/deployments/build-log.d.ts +39 -0
- package/dist/deployments/build-log.js +57 -0
- package/dist/deployments/cloud-steps.d.ts +77 -0
- package/dist/deployments/cloud-steps.js +132 -0
- package/dist/deployments/content.d.ts +61 -0
- package/dist/deployments/content.js +268 -0
- package/dist/deployments/deployment.d.ts +96 -0
- package/dist/deployments/deployment.js +3 -0
- package/dist/deployments/follow.d.ts +18 -0
- package/dist/deployments/follow.js +112 -0
- package/dist/deployments/ledger.d.ts +23 -0
- package/dist/deployments/ledger.js +359 -0
- package/dist/deployments/lifecycle.d.ts +123 -0
- package/dist/deployments/lifecycle.js +146 -0
- package/dist/deployments/live.d.ts +28 -0
- package/dist/deployments/live.js +54 -0
- package/dist/deployments/publish-read.d.ts +20 -0
- package/dist/deployments/publish-read.js +24 -0
- package/dist/deployments/refusals.d.ts +13 -0
- package/dist/deployments/refusals.js +35 -0
- package/dist/environments/actions.d.ts +86 -0
- package/dist/environments/actions.js +210 -0
- package/dist/environments/address.d.ts +60 -0
- package/dist/environments/address.js +149 -0
- package/dist/environments/content.d.ts +97 -0
- package/dist/environments/content.js +275 -0
- package/dist/environments/follower.d.ts +32 -0
- package/dist/environments/follower.js +114 -0
- package/dist/environments/pipeline.d.ts +58 -0
- package/dist/environments/pipeline.js +76 -0
- package/dist/environments/publish-targets.d.ts +18 -0
- package/dist/environments/publish-targets.js +55 -0
- package/dist/environments/roles.d.ts +73 -0
- package/dist/environments/roles.js +97 -0
- package/dist/frontend-module.d.ts +12 -0
- package/dist/frontend-module.js +25 -0
- package/dist/git/changed-files.d.ts +30 -0
- package/dist/git/changed-files.js +107 -0
- package/dist/git/changes.d.ts +89 -0
- package/dist/git/changes.js +162 -0
- package/dist/git/command.d.ts +51 -0
- package/dist/git/command.js +231 -0
- package/dist/git/promotion.d.ts +23 -0
- package/dist/git/promotion.js +46 -0
- package/dist/git/publish-input.d.ts +42 -0
- package/dist/git/publish-input.js +62 -0
- package/dist/git/publish-job.d.ts +82 -0
- package/dist/git/publish-job.js +99 -0
- package/dist/git/publish-steps.d.ts +90 -0
- package/dist/git/publish-steps.js +205 -0
- package/dist/git/publisher.d.ts +23 -0
- package/dist/git/publisher.js +206 -0
- package/dist/git/refs.d.ts +99 -0
- package/dist/git/refs.js +178 -0
- package/dist/git/refusal.d.ts +49 -0
- package/dist/git/refusal.js +70 -0
- package/dist/git/repository.d.ts +101 -0
- package/dist/git/repository.js +273 -0
- package/dist/git/versions.d.ts +99 -0
- package/dist/git/versions.js +174 -0
- package/dist/git/write-lock.d.ts +19 -0
- package/dist/git/write-lock.js +49 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +59 -0
- package/dist/lifecycle.d.ts +8 -0
- package/dist/lifecycle.js +78 -0
- package/dist/logs/relay.d.ts +25 -0
- package/dist/logs/relay.js +138 -0
- package/dist/null-prototype.d.ts +7 -0
- package/dist/null-prototype.js +3 -0
- package/dist/overview/content.d.ts +40 -0
- package/dist/overview/content.js +172 -0
- package/dist/pages/changes.d.ts +32 -0
- package/dist/pages/changes.js +141 -0
- package/dist/pages/connection.d.ts +43 -0
- package/dist/pages/connection.js +295 -0
- package/dist/pages/deployment.d.ts +67 -0
- package/dist/pages/deployment.js +261 -0
- package/dist/pages/deployments.d.ts +46 -0
- package/dist/pages/deployments.js +266 -0
- package/dist/pages/environments.d.ts +34 -0
- package/dist/pages/environments.js +368 -0
- package/dist/pages/logs.d.ts +46 -0
- package/dist/pages/logs.js +140 -0
- package/dist/pages/navigation.d.ts +61 -0
- package/dist/pages/navigation.js +107 -0
- package/dist/pages/overview.d.ts +35 -0
- package/dist/pages/overview.js +201 -0
- package/dist/pages/project-guard.d.ts +32 -0
- package/dist/pages/project-guard.js +99 -0
- package/dist/pages/query.d.ts +6 -0
- package/dist/pages/query.js +14 -0
- package/dist/pages/resources.d.ts +37 -0
- package/dist/pages/resources.js +211 -0
- package/dist/pages/setup.d.ts +40 -0
- package/dist/pages/setup.js +271 -0
- package/dist/pages/slugs.d.ts +15 -0
- package/dist/pages/slugs.js +28 -0
- package/dist/pages/variables.d.ts +43 -0
- package/dist/pages/variables.js +327 -0
- package/dist/pages/version.d.ts +26 -0
- package/dist/pages/version.js +214 -0
- package/dist/pages/versions.d.ts +20 -0
- package/dist/pages/versions.js +115 -0
- package/dist/resources/apply.d.ts +15 -0
- package/dist/resources/apply.js +127 -0
- package/dist/resources/cards.d.ts +41 -0
- package/dist/resources/cards.js +211 -0
- package/dist/resources/connect.d.ts +66 -0
- package/dist/resources/connect.js +78 -0
- package/dist/resources/content.d.ts +26 -0
- package/dist/resources/content.js +158 -0
- package/dist/resources/format.d.ts +10 -0
- package/dist/resources/format.js +30 -0
- package/dist/resources/guard.d.ts +23 -0
- package/dist/resources/guard.js +60 -0
- package/dist/resources/modules.d.ts +23 -0
- package/dist/resources/modules.js +39 -0
- package/dist/resources/plan.d.ts +8 -0
- package/dist/resources/plan.js +93 -0
- package/dist/resources/read.d.ts +54 -0
- package/dist/resources/read.js +69 -0
- package/dist/resources/refusals.d.ts +15 -0
- package/dist/resources/refusals.js +33 -0
- package/dist/resources/routes.d.ts +32 -0
- package/dist/resources/routes.js +53 -0
- package/dist/setup/actions.d.ts +79 -0
- package/dist/setup/actions.js +188 -0
- package/dist/setup/apply.d.ts +37 -0
- package/dist/setup/apply.js +172 -0
- package/dist/setup/content.d.ts +50 -0
- package/dist/setup/content.js +440 -0
- package/dist/setup/rollout.d.ts +119 -0
- package/dist/setup/rollout.js +227 -0
- package/dist/setup/steps.d.ts +93 -0
- package/dist/setup/steps.js +95 -0
- package/dist/setup/storage.d.ts +29 -0
- package/dist/setup/storage.js +78 -0
- package/dist/setup/store.d.ts +214 -0
- package/dist/setup/store.js +174 -0
- package/dist/setup/volume.d.ts +31 -0
- package/dist/setup/volume.js +52 -0
- package/dist/slug.d.ts +7 -0
- package/dist/slug.js +26 -0
- package/dist/variables/actions.d.ts +76 -0
- package/dist/variables/actions.js +185 -0
- package/dist/variables/content.d.ts +69 -0
- package/dist/variables/content.js +310 -0
- package/dist/variables/decide.d.ts +27 -0
- package/dist/variables/decide.js +155 -0
- package/dist/variables/decided-dialog.d.ts +11 -0
- package/dist/variables/decided-dialog.js +129 -0
- package/dist/variables/decided.d.ts +80 -0
- package/dist/variables/decided.js +240 -0
- package/dist/variables/dialogs.d.ts +8 -0
- package/dist/variables/dialogs.js +219 -0
- package/dist/variables/model.d.ts +106 -0
- package/dist/variables/model.js +156 -0
- package/dist/variables/project-config.d.ts +117 -0
- package/dist/variables/project-config.js +248 -0
- package/dist/variables/read.d.ts +33 -0
- package/dist/variables/read.js +118 -0
- package/dist/web-url.d.ts +9 -0
- package/dist/web-url.js +19 -0
- package/frontend-vue/app/components/BuildLog.vue +99 -0
- package/frontend-vue/app/components/ChangedFiles.vue +165 -0
- package/frontend-vue/app/components/DashboardEnvironments.vue +102 -0
- package/frontend-vue/app/components/LogLine.vue +33 -0
- package/frontend-vue/app/components/LogViewer.vue +314 -0
- package/frontend-vue/app/components/PublishChipIcon.vue +39 -0
- package/frontend-vue/app/components/PublishForm.vue +505 -0
- package/frontend-vue/app/components/PublishPopover.vue +90 -0
- package/frontend-vue/app/components/PublishRoute.vue +222 -0
- package/frontend-vue/app/composables/usePublishSummary.ts +80 -0
- package/frontend-vue/app/plugins/publish-chip.client.ts +44 -0
- package/frontend-vue/app/types/publishing.ts +154 -0
- package/frontend-vue/app/utils/build-log.ts +96 -0
- package/frontend-vue/app/utils/changed-files.ts +142 -0
- package/frontend-vue/app/utils/log-line.ts +15 -0
- package/frontend-vue/app/utils/log-stream.ts +361 -0
- package/frontend-vue/app/utils/publish-state.ts +299 -0
- package/frontend-vue/dms.frontend.ts +27 -0
- package/frontend-vue/i18n/locales/antelope-cloud-en-GB.json +110 -0
- package/frontend-vue/package.json +38 -0
- package/frontend-vue/pnpm-lock.yaml +2697 -0
- package/package.json +115 -4
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
45
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.SetupPage = void 0;
|
|
49
|
+
const node_path_1 = require("node:path");
|
|
50
|
+
const interface_api_1 = require("@antelopejs/interface-api");
|
|
51
|
+
const banner_1 = require("@antelopejs/interface-dms/base/banner");
|
|
52
|
+
const guard_1 = require("@antelopejs/interface-dms/base/guard");
|
|
53
|
+
const key_value_list_1 = require("@antelopejs/interface-dms/base/key-value-list");
|
|
54
|
+
const section_1 = require("@antelopejs/interface-dms/base/section");
|
|
55
|
+
const page_1 = require("@antelopejs/interface-dms/page");
|
|
56
|
+
const config_1 = require("../config");
|
|
57
|
+
const announce_1 = require("../connection/announce");
|
|
58
|
+
const cloud_1 = require("../connection/cloud");
|
|
59
|
+
const content_1 = require("../connection/content");
|
|
60
|
+
const current_1 = require("../connection/current");
|
|
61
|
+
const repository_1 = require("../connection/repository");
|
|
62
|
+
const view_1 = require("../connection/view");
|
|
63
|
+
const actions = __importStar(require("../setup/actions"));
|
|
64
|
+
const apply_1 = require("../setup/apply");
|
|
65
|
+
const content_2 = require("../setup/content");
|
|
66
|
+
const slug_1 = require("../slug");
|
|
67
|
+
const navigation_1 = require("./navigation");
|
|
68
|
+
const overview_1 = require("./overview");
|
|
69
|
+
const STEP_ROWS = 6;
|
|
70
|
+
const PLAN_ROWS = 5;
|
|
71
|
+
const REPOSITORY_ROWS = 2;
|
|
72
|
+
/**
|
|
73
|
+
* The steps that put this project online on AntelopeJS Cloud: connect, choose
|
|
74
|
+
* or plan the project, check the repository, review the plan, apply it.
|
|
75
|
+
* Nothing is created on AntelopeJS Cloud before the plan is applied.
|
|
76
|
+
*/
|
|
77
|
+
let SetupPage = class SetupPage extends (0, page_1.PageController)("setup", {
|
|
78
|
+
...(0, navigation_1.navigationEntry)("overview"),
|
|
79
|
+
displayName: "First-run setup",
|
|
80
|
+
icon: "i-ph-flag-banner",
|
|
81
|
+
urlSlug: "setup",
|
|
82
|
+
hidden: true,
|
|
83
|
+
parent: overview_1.OverviewPage,
|
|
84
|
+
}) {
|
|
85
|
+
static steps = (0, key_value_list_1.KeyValueList)({
|
|
86
|
+
title: "Six steps. Nothing is created on AntelopeJS Cloud before you apply the plan.",
|
|
87
|
+
fetchUrl: (0, content_2.setupRoute)(content_2.SETUP_ROUTES.steps),
|
|
88
|
+
realtimeTopic: announce_1.PROJECT_TOPICS,
|
|
89
|
+
skeletonCount: STEP_ROWS,
|
|
90
|
+
});
|
|
91
|
+
static step = (0, banner_1.Banner)({
|
|
92
|
+
fetchUrl: (0, content_2.setupRoute)(content_2.SETUP_ROUTES.step),
|
|
93
|
+
realtimeTopic: announce_1.PROJECT_TOPICS,
|
|
94
|
+
});
|
|
95
|
+
static connection = (0, guard_1.Guard)({
|
|
96
|
+
fetchUrl: (0, content_2.setupRoute)(content_2.SETUP_ROUTES.state),
|
|
97
|
+
realtimeTopic: announce_1.PROJECT_TOPICS,
|
|
98
|
+
field: "connected",
|
|
99
|
+
fallback: {
|
|
100
|
+
title: "Not connected",
|
|
101
|
+
description: "Connect this DMS to an AntelopeJS Cloud workspace to plan its project.",
|
|
102
|
+
icon: "i-ph-plugs-connected",
|
|
103
|
+
},
|
|
104
|
+
})
|
|
105
|
+
.child("repository", (0, guard_1.Guard)({
|
|
106
|
+
fetchUrl: (0, content_2.setupRoute)(content_2.SETUP_ROUTES.remote),
|
|
107
|
+
field: "remote",
|
|
108
|
+
fallback: content_1.NO_GITHUB_REMOTE,
|
|
109
|
+
}).child("details", (0, key_value_list_1.KeyValueList)({
|
|
110
|
+
title: "Repository",
|
|
111
|
+
fetchUrl: (0, content_2.setupRoute)(content_2.SETUP_ROUTES.repository),
|
|
112
|
+
skeletonCount: REPOSITORY_ROWS,
|
|
113
|
+
})))
|
|
114
|
+
.child("plan", (0, section_1.Section)({
|
|
115
|
+
title: "Plan",
|
|
116
|
+
description: "What applying the plan creates or links on AntelopeJS Cloud.",
|
|
117
|
+
card: false,
|
|
118
|
+
}).child("items", (0, key_value_list_1.KeyValueList)({
|
|
119
|
+
fetchUrl: (0, content_2.setupRoute)(content_2.SETUP_ROUTES.plan),
|
|
120
|
+
realtimeTopic: announce_1.PROJECT_TOPICS,
|
|
121
|
+
skeletonCount: PLAN_ROWS,
|
|
122
|
+
empty: {
|
|
123
|
+
title: "No project yet",
|
|
124
|
+
description: "Choose the project first.",
|
|
125
|
+
},
|
|
126
|
+
})));
|
|
127
|
+
stored() {
|
|
128
|
+
return (0, current_1.readConnection)(this.tenantId);
|
|
129
|
+
}
|
|
130
|
+
async readSteps() {
|
|
131
|
+
const { steps } = await actions.readSetupState(this.tenantId);
|
|
132
|
+
return { items: (0, content_2.stepItems)(steps) };
|
|
133
|
+
}
|
|
134
|
+
async readStep() {
|
|
135
|
+
return (0, content_2.stepBanner)(await actions.readSetupState(this.tenantId));
|
|
136
|
+
}
|
|
137
|
+
async readState() {
|
|
138
|
+
return (0, content_1.guardAnswer)((0, view_1.toView)(await this.stored(), new Date()));
|
|
139
|
+
}
|
|
140
|
+
async readPlan() {
|
|
141
|
+
return { items: (0, content_2.planItems)(await actions.readSetupState(this.tenantId)) };
|
|
142
|
+
}
|
|
143
|
+
async readRemote() {
|
|
144
|
+
return (0, content_1.remoteAnswer)(await (0, repository_1.readPublishedRepository)());
|
|
145
|
+
}
|
|
146
|
+
async readRepository() {
|
|
147
|
+
return { items: (0, content_1.repositoryItems)(await (0, repository_1.readPublishedRepository)()) };
|
|
148
|
+
}
|
|
149
|
+
async readNewProjectDialog() {
|
|
150
|
+
const stored = await this.stored();
|
|
151
|
+
if (stored?.state === "connected" && (0, current_1.isManaged)(stored)) {
|
|
152
|
+
return (0, content_1.managedProjectDialog)();
|
|
153
|
+
}
|
|
154
|
+
return (0, content_2.newProjectDialog)(stored?.state === "connected"
|
|
155
|
+
? await (0, cloud_1.readCloud)(stored, (api) => api.onboardingState())
|
|
156
|
+
: undefined, (0, slug_1.slugify)((0, node_path_1.basename)((0, config_1.cloudSettings)().repositoryPath)));
|
|
157
|
+
}
|
|
158
|
+
async readExistingProjectDialog() {
|
|
159
|
+
const stored = await this.stored();
|
|
160
|
+
if (stored?.state === "connected" && (0, current_1.isManaged)(stored)) {
|
|
161
|
+
return (0, content_1.managedProjectDialog)();
|
|
162
|
+
}
|
|
163
|
+
return (0, content_1.projectDialog)(stored?.state === "connected"
|
|
164
|
+
? await (0, cloud_1.readCloud)(stored, (api) => api.listProjects())
|
|
165
|
+
: undefined);
|
|
166
|
+
}
|
|
167
|
+
async readStagesDialog() {
|
|
168
|
+
return (0, content_2.stagesDialog)(await actions.readSetup(this.tenantId));
|
|
169
|
+
}
|
|
170
|
+
async planNewProject(body) {
|
|
171
|
+
await actions.planNewProject(this.tenantId, actions.parseNewProject(body));
|
|
172
|
+
return {};
|
|
173
|
+
}
|
|
174
|
+
async planExistingProject(body) {
|
|
175
|
+
await actions.planExistingProject(this.tenantId, actions.parseExistingProject(body));
|
|
176
|
+
return {};
|
|
177
|
+
}
|
|
178
|
+
async planStages(body) {
|
|
179
|
+
await actions.planStages(this.tenantId, actions.parseStages(body));
|
|
180
|
+
return {};
|
|
181
|
+
}
|
|
182
|
+
async apply() {
|
|
183
|
+
return (0, content_2.applyAnswer)(await (0, apply_1.applySetup)(this.tenantId));
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
exports.SetupPage = SetupPage;
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.steps),
|
|
189
|
+
__metadata("design:type", Function),
|
|
190
|
+
__metadata("design:paramtypes", []),
|
|
191
|
+
__metadata("design:returntype", Promise)
|
|
192
|
+
], SetupPage.prototype, "readSteps", null);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.step),
|
|
195
|
+
__metadata("design:type", Function),
|
|
196
|
+
__metadata("design:paramtypes", []),
|
|
197
|
+
__metadata("design:returntype", Promise)
|
|
198
|
+
], SetupPage.prototype, "readStep", null);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.state),
|
|
201
|
+
__metadata("design:type", Function),
|
|
202
|
+
__metadata("design:paramtypes", []),
|
|
203
|
+
__metadata("design:returntype", Promise)
|
|
204
|
+
], SetupPage.prototype, "readState", null);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.plan),
|
|
207
|
+
__metadata("design:type", Function),
|
|
208
|
+
__metadata("design:paramtypes", []),
|
|
209
|
+
__metadata("design:returntype", Promise)
|
|
210
|
+
], SetupPage.prototype, "readPlan", null);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.remote),
|
|
213
|
+
__metadata("design:type", Function),
|
|
214
|
+
__metadata("design:paramtypes", []),
|
|
215
|
+
__metadata("design:returntype", Promise)
|
|
216
|
+
], SetupPage.prototype, "readRemote", null);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.repository),
|
|
219
|
+
__metadata("design:type", Function),
|
|
220
|
+
__metadata("design:paramtypes", []),
|
|
221
|
+
__metadata("design:returntype", Promise)
|
|
222
|
+
], SetupPage.prototype, "readRepository", null);
|
|
223
|
+
__decorate([
|
|
224
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.newProjectDialog),
|
|
225
|
+
__metadata("design:type", Function),
|
|
226
|
+
__metadata("design:paramtypes", []),
|
|
227
|
+
__metadata("design:returntype", Promise)
|
|
228
|
+
], SetupPage.prototype, "readNewProjectDialog", null);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.existingProjectDialog),
|
|
231
|
+
__metadata("design:type", Function),
|
|
232
|
+
__metadata("design:paramtypes", []),
|
|
233
|
+
__metadata("design:returntype", Promise)
|
|
234
|
+
], SetupPage.prototype, "readExistingProjectDialog", null);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, interface_api_1.Get)(content_2.SETUP_ROUTES.stagesDialog),
|
|
237
|
+
__metadata("design:type", Function),
|
|
238
|
+
__metadata("design:paramtypes", []),
|
|
239
|
+
__metadata("design:returntype", Promise)
|
|
240
|
+
], SetupPage.prototype, "readStagesDialog", null);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, interface_api_1.Post)(content_2.SETUP_ROUTES.planNewProject),
|
|
243
|
+
__param(0, (0, interface_api_1.JSONBody)()),
|
|
244
|
+
__metadata("design:type", Function),
|
|
245
|
+
__metadata("design:paramtypes", [Object]),
|
|
246
|
+
__metadata("design:returntype", Promise)
|
|
247
|
+
], SetupPage.prototype, "planNewProject", null);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, interface_api_1.Post)(content_2.SETUP_ROUTES.planExistingProject),
|
|
250
|
+
__param(0, (0, interface_api_1.JSONBody)()),
|
|
251
|
+
__metadata("design:type", Function),
|
|
252
|
+
__metadata("design:paramtypes", [Object]),
|
|
253
|
+
__metadata("design:returntype", Promise)
|
|
254
|
+
], SetupPage.prototype, "planExistingProject", null);
|
|
255
|
+
__decorate([
|
|
256
|
+
(0, interface_api_1.Post)(content_2.SETUP_ROUTES.planStages),
|
|
257
|
+
__param(0, (0, interface_api_1.JSONBody)()),
|
|
258
|
+
__metadata("design:type", Function),
|
|
259
|
+
__metadata("design:paramtypes", [Object]),
|
|
260
|
+
__metadata("design:returntype", Promise)
|
|
261
|
+
], SetupPage.prototype, "planStages", null);
|
|
262
|
+
__decorate([
|
|
263
|
+
(0, interface_api_1.Post)(content_2.SETUP_ROUTES.apply),
|
|
264
|
+
__metadata("design:type", Function),
|
|
265
|
+
__metadata("design:paramtypes", []),
|
|
266
|
+
__metadata("design:returntype", Promise)
|
|
267
|
+
], SetupPage.prototype, "apply", null);
|
|
268
|
+
exports.SetupPage = SetupPage = __decorate([
|
|
269
|
+
(0, page_1.RegisterPage)()
|
|
270
|
+
], SetupPage);
|
|
271
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BuiltPageId } from "./navigation";
|
|
2
|
+
/** The id the module registers under, and the segment of its pages' URLs. */
|
|
3
|
+
export declare const MODULE_ID = "antelope-cloud";
|
|
4
|
+
/** The full slug of a built page, such as `/modules/antelope-cloud/connection`. */
|
|
5
|
+
export declare function modulePageSlug(id: BuiltPageId): string;
|
|
6
|
+
/**
|
|
7
|
+
* The full slug of a page the sidebar does not list, such as
|
|
8
|
+
* `/modules/antelope-cloud/version/:number` for the URL slug
|
|
9
|
+
* `version/:number`. The sidebar groups add no URL segment.
|
|
10
|
+
*/
|
|
11
|
+
export declare function detailPageSlug(urlSlug: string): string;
|
|
12
|
+
/** The full slug of one deployment's page. */
|
|
13
|
+
export declare function deploymentPageSlug(deploymentId: string): string;
|
|
14
|
+
/** The full slug of the First-run setup, `/modules/antelope-cloud/setup`. */
|
|
15
|
+
export declare const SETUP_PAGE_SLUG: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SETUP_PAGE_SLUG = exports.MODULE_ID = void 0;
|
|
4
|
+
exports.modulePageSlug = modulePageSlug;
|
|
5
|
+
exports.detailPageSlug = detailPageSlug;
|
|
6
|
+
exports.deploymentPageSlug = deploymentPageSlug;
|
|
7
|
+
const page_1 = require("@antelopejs/interface-dms/page");
|
|
8
|
+
/** The id the module registers under, and the segment of its pages' URLs. */
|
|
9
|
+
exports.MODULE_ID = "antelope-cloud";
|
|
10
|
+
/** The full slug of a built page, such as `/modules/antelope-cloud/connection`. */
|
|
11
|
+
function modulePageSlug(id) {
|
|
12
|
+
return `${page_1.MODULE_URL_PREFIX}/${exports.MODULE_ID}/${id}`;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The full slug of a page the sidebar does not list, such as
|
|
16
|
+
* `/modules/antelope-cloud/version/:number` for the URL slug
|
|
17
|
+
* `version/:number`. The sidebar groups add no URL segment.
|
|
18
|
+
*/
|
|
19
|
+
function detailPageSlug(urlSlug) {
|
|
20
|
+
return `${page_1.MODULE_URL_PREFIX}/${exports.MODULE_ID}/${urlSlug}`;
|
|
21
|
+
}
|
|
22
|
+
/** The full slug of one deployment's page. */
|
|
23
|
+
function deploymentPageSlug(deploymentId) {
|
|
24
|
+
return `${detailPageSlug("deployment")}/${encodeURIComponent(deploymentId)}`;
|
|
25
|
+
}
|
|
26
|
+
/** The full slug of the First-run setup, `/modules/antelope-cloud/setup`. */
|
|
27
|
+
exports.SETUP_PAGE_SLUG = detailPageSlug("setup");
|
|
28
|
+
//# sourceMappingURL=slugs.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type QueryValue } from "@antelopejs/interface-api";
|
|
2
|
+
import { type BannerContent } from "@antelopejs/interface-dms/base/banner";
|
|
3
|
+
import type { ConfirmDialogSerialized } from "@antelopejs/interface-dms/base/types/confirm-dialog";
|
|
4
|
+
import { type DecidedAnswer } from "../variables/decide";
|
|
5
|
+
import { type TableAnswer } from "../variables/content";
|
|
6
|
+
declare const VariablesPage_base: {
|
|
7
|
+
new (...args: any[]): {};
|
|
8
|
+
extend: <T extends import("@antelopejs/interface-api").ControllerClass>(this: T, location: string) => T;
|
|
9
|
+
location: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The variables and secrets of each environment of the connected project:
|
|
13
|
+
* those AntelopeJS Cloud wires from a resource, those the owner set, and
|
|
14
|
+
* those a service lacks: the `envOverrides` keys of the app, and the
|
|
15
|
+
* variables a dashboard reads. Secret values are write-only: no answer of
|
|
16
|
+
* the page carries one, but the setup token, in the answer of the action
|
|
17
|
+
* that generates it.
|
|
18
|
+
*/
|
|
19
|
+
export declare class VariablesPage extends VariablesPage_base {
|
|
20
|
+
static status: import("@antelopejs/interface-dms").ComponentBuilder<import("@antelopejs/interface-dms/base").BannerProps>;
|
|
21
|
+
static hardcoded: import("@antelopejs/interface-dms").ComponentBuilder<import("@antelopejs/interface-dms/base").BannerProps>;
|
|
22
|
+
static environments: import("@antelopejs/interface-dms").ComponentBuilder<import("@antelopejs/interface-dms/base").BannerProps>;
|
|
23
|
+
static variables: import("@antelopejs/interface-dms").ComponentBuilder<import("@antelopejs/interface-dms/base").TableViewOptionsSerialized>;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
private read;
|
|
26
|
+
readStatus(): Promise<BannerContent | null>;
|
|
27
|
+
readHardcoded(): Promise<BannerContent | null>;
|
|
28
|
+
readEnvironments(): Promise<BannerContent | null>;
|
|
29
|
+
list(search?: QueryValue, environment?: QueryValue): Promise<TableAnswer>;
|
|
30
|
+
readAddDialog(): Promise<ConfirmDialogSerialized>;
|
|
31
|
+
add(body: unknown): Promise<object>;
|
|
32
|
+
readValueDialog(ref: string): Promise<ConfirmDialogSerialized>;
|
|
33
|
+
setValue(ref: string, body: unknown): Promise<object>;
|
|
34
|
+
readRemoveDialog(ref: string): Promise<ConfirmDialogSerialized>;
|
|
35
|
+
remove(ref: string): Promise<object>;
|
|
36
|
+
readDecidedDialog(environment?: QueryValue): Promise<ConfirmDialogSerialized>;
|
|
37
|
+
/**
|
|
38
|
+
* Sets what AntelopeJS Cloud can decide on an environment. The answer
|
|
39
|
+
* carries the setup token when this run generated it, and no other value.
|
|
40
|
+
*/
|
|
41
|
+
decide(environment?: QueryValue): Promise<DecidedAnswer>;
|
|
42
|
+
}
|
|
43
|
+
export {};
|