Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
484741e052 | |||
45ea020ec8 | |||
efdde110a0 | |||
134dd0414f | |||
53e3ba4672 | |||
609e176aab | |||
617a3f307c | |||
a577418132 | |||
c969da7362 | |||
fd6427da1e | |||
ad178bfec3 | |||
22db7a50de | |||
f010f1e32b | |||
1e24a6a671 | |||
69583a90ad | |||
efb2e53e0c |
@ -12,6 +12,9 @@ stages:
|
|||||||
- release
|
- release
|
||||||
- metadata
|
- metadata
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm install -g @shipzone/npmci
|
||||||
|
|
||||||
# ====================
|
# ====================
|
||||||
# security stage
|
# security stage
|
||||||
# ====================
|
# ====================
|
||||||
@ -37,6 +40,7 @@ auditProductionDependencies:
|
|||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
auditDevDependencies:
|
auditDevDependencies:
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
@ -102,10 +106,9 @@ codequality:
|
|||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
- npmci command npm install -g tslint typescript
|
- npmci command npm install -g typescript
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
|
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@ -2,28 +2,10 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "current file",
|
"command": "npm test",
|
||||||
"type": "node",
|
"name": "Run npm test",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"args": [
|
"type": "node-terminal"
|
||||||
"${relativeFile}"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "test.ts",
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"args": [
|
|
||||||
"test/test.ts"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="./index.ts"></script>
|
<script type="module" src="/bundle.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,8 +3,8 @@ import * as deesWccTools from '@designestate/dees-wcctools';
|
|||||||
import * as deesDomTools from '@designestate/dees-domtools';
|
import * as deesDomTools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
// elements and pages
|
// elements and pages
|
||||||
import * as elements from '../ts_web/elements';
|
import * as elements from '../ts_web/elements/index.js';
|
||||||
import * as pages from '../ts_web/pages';
|
import * as pages from '../ts_web/pages/index.js';
|
||||||
|
|
||||||
deesWccTools.setupWccTools(elements as any, pages);
|
deesWccTools.setupWccTools(elements as any, pages);
|
||||||
deesDomTools.elementBasic.setup();
|
deesDomTools.elementBasic.setup();
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"githost": "gitlab.com",
|
"githost": "gitlab.com",
|
||||||
"gitscope": "uptimelink/private",
|
"gitscope": "uptimelink/private",
|
||||||
"gitrepo": "catalog",
|
"gitrepo": "catalog",
|
||||||
"shortDescription": "a catalog with webcomponents for uptimelink dashboard",
|
"description": "a catalog with webcomponents for uptimelink dashboard",
|
||||||
"npmPackagename": "@uptimelink_private/catalog",
|
"npmPackagename": "@uptimelink_private/catalog",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"projectDomain": "uptime.link"
|
"projectDomain": "uptime.link"
|
||||||
@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"npmci": {
|
"npmci": {
|
||||||
"npmGlobalTools": [],
|
"npmGlobalTools": [],
|
||||||
"npmAccessLevel": "private"
|
"npmAccessLevel": "private",
|
||||||
|
"npmRegistryUrl": "verdaccio.lossless.one"
|
||||||
}
|
}
|
||||||
}
|
}
|
25619
package-lock.json
generated
25619
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@ -1,33 +1,33 @@
|
|||||||
{
|
{
|
||||||
"name": "@uptimelink_private/catalog",
|
"name": "@uptimelink_private/catalog",
|
||||||
"version": "1.0.61",
|
"version": "1.0.69",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a catalog with webcomponents for uptimelink dashboard",
|
"description": "a catalog with webcomponents for uptimelink dashboard",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
"typings": "dist_ts_web/index.d.ts",
|
"typings": "dist_ts_web/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build",
|
"test": "npm run build",
|
||||||
"build": "tsbuild element && tsbundle element --production",
|
"build": "tsbuild element --allowimplicitany --skiplibcheck && tsbundle element --production",
|
||||||
"watch": "tswatch element"
|
"watch": "tswatch element"
|
||||||
},
|
},
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@designestate/dees-domtools": "^1.0.95",
|
"@designestate/dees-domtools": "^2.0.1",
|
||||||
"@designestate/dees-element": "^1.0.25",
|
"@designestate/dees-element": "^2.0.4",
|
||||||
"@designestate/dees-wcctools": "^1.0.57",
|
"@designestate/dees-wcctools": "^1.0.73",
|
||||||
"@gitzone/tsrun": "^1.2.17",
|
"@gitzone/tsrun": "^1.2.31",
|
||||||
"@losslessone_private/loint-pubapi": "^1.0.10",
|
"@losslessone_private/loint-pubapi": "^1.0.10",
|
||||||
"@uptimelink/interfaces": "^1.0.10",
|
"@uptimelink/interfaces": "^1.0.10",
|
||||||
"typescript": "^4.4.3"
|
"typescript": "^4.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.27",
|
"@gitzone/tsbuild": "^2.1.61",
|
||||||
"@gitzone/tsbundle": "^1.0.87",
|
"@gitzone/tsbundle": "^1.0.101",
|
||||||
"@gitzone/tswatch": "^1.0.56",
|
"@gitzone/tswatch": "^1.0.73",
|
||||||
"@pushrocks/projectinfo": "^4.0.5",
|
"@pushrocks/projectinfo": "^4.0.5",
|
||||||
"tslint": "^6.1.3",
|
"@pushrocks/smartenv": "^5.0.0"
|
||||||
"tslint-config-prettier": "^1.17.0"
|
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
export * from './upl-statuspage-assetsselector';
|
export * from './upl-statuspage-assetsselector.js';
|
||||||
export * from './upl-statuspage-footer';
|
export * from './upl-statuspage-footer.js';
|
||||||
export * from './upl-statuspage-header';
|
export * from './upl-statuspage-header.js';
|
||||||
export * from './upl-statuspage-incidents';
|
export * from './upl-statuspage-incidents.js';
|
||||||
export * from './upl-statuspage-statusbar';
|
export * from './upl-statuspage-statusbar.js';
|
||||||
export * from './upl-statuspage-statusdetails';
|
export * from './upl-statuspage-statusdetails.js';
|
||||||
export * from './upl-statuspage-statusmonth';
|
export * from './upl-statuspage-statusmonth.js';
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
} from '@designestate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
import * as plugins from '../plugins';
|
import * as plugins from '../plugins.js';
|
||||||
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
|
import {
|
||||||
|
DeesElement,
|
||||||
|
property,
|
||||||
|
html,
|
||||||
|
customElement,
|
||||||
|
TemplateResult,
|
||||||
|
css,
|
||||||
|
cssManager,
|
||||||
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -10,27 +18,24 @@ declare global {
|
|||||||
@customElement('upl-statuspage-incidents')
|
@customElement('upl-statuspage-incidents')
|
||||||
export class UplStatuspageIncidents extends DeesElement {
|
export class UplStatuspageIncidents extends DeesElement {
|
||||||
// STATIC
|
// STATIC
|
||||||
public static demo = () => html`
|
public static demo = () => html` <upl-statuspage-incidents></upl-statuspage-incidents> `;
|
||||||
<upl-statuspage-incidents></upl-statuspage-incidents>
|
|
||||||
`;
|
|
||||||
|
|
||||||
// INSTANCE
|
// INSTANCE
|
||||||
@property({
|
@property({
|
||||||
type: Array
|
type: Array,
|
||||||
})
|
})
|
||||||
public currentIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
public currentIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
||||||
|
|
||||||
@property({
|
@property({
|
||||||
type: Array
|
type: Array,
|
||||||
})
|
})
|
||||||
public pastIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
public pastIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
||||||
|
|
||||||
@property({
|
@property({
|
||||||
type: Boolean
|
type: Boolean,
|
||||||
})
|
})
|
||||||
public whitelabel = false;
|
public whitelabel = false;
|
||||||
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -39,57 +44,47 @@ export class UplStatuspageIncidents extends DeesElement {
|
|||||||
plugins.domtools.elementBasic.staticStyles,
|
plugins.domtools.elementBasic.staticStyles,
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||||
font-family: Roboto Mono;
|
font-family: Roboto Mono;
|
||||||
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainbox {
|
.mainbox {
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noIncidentBox {
|
.noIncidentBox {
|
||||||
background: #333;
|
background: #333;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
}
|
||||||
}
|
`,
|
||||||
|
];
|
||||||
`
|
|
||||||
]
|
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
<style></style>
|
<style></style>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
<uplinternal-miniheading>
|
<uplinternal-miniheading> Current Incidents </uplinternal-miniheading>
|
||||||
Current Incidents
|
${this.currentIncidences.length
|
||||||
</uplinternal-miniheading>
|
? html``
|
||||||
<div class="noIncidentBox">
|
: html` <div class="noIncidentBox">No incidents ongoing.</div> `}
|
||||||
No incidents ongoing.
|
<uplinternal-miniheading> Past Incidents </uplinternal-miniheading>
|
||||||
</div>
|
${this.pastIncidences.length
|
||||||
<uplinternal-miniheading>
|
? html``
|
||||||
Past Incidents
|
: html` <div class="noIncidentBox">No past incidents in the last 90 days.</div> `}
|
||||||
</uplinternal-miniheading>
|
|
||||||
<div class="noIncidentBox">
|
|
||||||
No past incidents in the last 90 days.
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
public dispatchReportNewIncident() {
|
public dispatchReportNewIncident() {
|
||||||
this.dispatchEvent(new CustomEvent('reportNewIncident', {
|
this.dispatchEvent(new CustomEvent('reportNewIncident', {}));
|
||||||
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public dispatchStatusSubscribe() {
|
public dispatchStatusSubscribe() {
|
||||||
this.dispatchEvent(new CustomEvent('statusSubscribe', {
|
this.dispatchEvent(new CustomEvent('statusSubscribe', {}));
|
||||||
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from '../plugins';
|
import * as plugins from '../plugins.js';
|
||||||
import {
|
import {
|
||||||
DeesElement,
|
DeesElement,
|
||||||
property,
|
property,
|
||||||
@ -9,7 +9,7 @@ import {
|
|||||||
cssManager,
|
cssManager,
|
||||||
} from '@designestate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
|
@ -9,7 +9,7 @@ import {
|
|||||||
} from '@designestate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
|
@ -1 +1 @@
|
|||||||
export * from './elements/index';
|
export * from './elements/index.js';
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"target": "es2017",
|
|
||||||
"module": "es2015",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"lib": ["es2017", "dom"],
|
|
||||||
"declaration": true,
|
|
||||||
"inlineSources": true,
|
|
||||||
"inlineSourceMap": true,
|
|
||||||
"noUnusedLocals": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"outDir": "dist/",
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"experimentalDecorators": true
|
|
||||||
}
|
|
||||||
}
|
|
8
tsconfig.json
Normal file
8
tsconfig.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "ES2022",
|
||||||
|
"moduleResolution": "nodenext"
|
||||||
|
}
|
||||||
|
}
|
17
tslint.json
17
tslint.json
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["tslint:latest", "tslint-config-prettier"],
|
|
||||||
"rules": {
|
|
||||||
"semicolon": [true, "always"],
|
|
||||||
"no-console": false,
|
|
||||||
"ordered-imports": false,
|
|
||||||
"object-literal-sort-keys": false,
|
|
||||||
"member-ordering": {
|
|
||||||
"options":{
|
|
||||||
"order": [
|
|
||||||
"static-method"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultSeverity": "warning"
|
|
||||||
}
|
|
Reference in New Issue
Block a user