Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
53e3ba4672 | |||
609e176aab | |||
617a3f307c | |||
a577418132 | |||
c969da7362 | |||
fd6427da1e | |||
ad178bfec3 | |||
22db7a50de | |||
f010f1e32b | |||
1e24a6a671 | |||
69583a90ad | |||
efb2e53e0c |
@ -5,7 +5,7 @@
|
||||
"githost": "gitlab.com",
|
||||
"gitscope": "uptimelink/private",
|
||||
"gitrepo": "catalog",
|
||||
"shortDescription": "a catalog with webcomponents for uptimelink dashboard",
|
||||
"description": "a catalog with webcomponents for uptimelink dashboard",
|
||||
"npmPackagename": "@uptimelink_private/catalog",
|
||||
"license": "UNLICENSED",
|
||||
"projectDomain": "uptime.link"
|
||||
@ -13,6 +13,7 @@
|
||||
},
|
||||
"npmci": {
|
||||
"npmGlobalTools": [],
|
||||
"npmAccessLevel": "private"
|
||||
"npmAccessLevel": "private",
|
||||
"npmRegistryUrl": "verdaccio.lossless.one"
|
||||
}
|
||||
}
|
25487
package-lock.json
generated
25487
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
25
package.json
25
package.json
@ -1,33 +1,32 @@
|
||||
{
|
||||
"name": "@uptimelink_private/catalog",
|
||||
"version": "1.0.61",
|
||||
"version": "1.0.67",
|
||||
"private": false,
|
||||
"description": "a catalog with webcomponents for uptimelink dashboard",
|
||||
"main": "dist_ts_web/index.js",
|
||||
"typings": "dist_ts_web/index.d.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "npm run build",
|
||||
"build": "tsbuild element && tsbundle element --production",
|
||||
"build": "tsbuild element --allowimplicitany --skiplibcheck && tsbundle element --production",
|
||||
"watch": "tswatch element"
|
||||
},
|
||||
"author": "Lossless GmbH",
|
||||
"license": "UNLICENSED",
|
||||
"dependencies": {
|
||||
"@designestate/dees-domtools": "^1.0.95",
|
||||
"@designestate/dees-element": "^1.0.25",
|
||||
"@designestate/dees-wcctools": "^1.0.57",
|
||||
"@gitzone/tsrun": "^1.2.17",
|
||||
"@designestate/dees-domtools": "^2.0.1",
|
||||
"@designestate/dees-element": "^2.0.4",
|
||||
"@designestate/dees-wcctools": "^1.0.70",
|
||||
"@gitzone/tsrun": "^1.2.31",
|
||||
"@losslessone_private/loint-pubapi": "^1.0.10",
|
||||
"@uptimelink/interfaces": "^1.0.10",
|
||||
"typescript": "^4.4.3"
|
||||
"typescript": "^4.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.27",
|
||||
"@gitzone/tsbundle": "^1.0.87",
|
||||
"@gitzone/tswatch": "^1.0.56",
|
||||
"@pushrocks/projectinfo": "^4.0.5",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.17.0"
|
||||
"@gitzone/tsbuild": "^2.1.60",
|
||||
"@gitzone/tsbundle": "^1.0.101",
|
||||
"@gitzone/tswatch": "^1.0.73",
|
||||
"@pushrocks/projectinfo": "^4.0.5"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
@ -1,7 +1,7 @@
|
||||
export * from './upl-statuspage-assetsselector';
|
||||
export * from './upl-statuspage-footer';
|
||||
export * from './upl-statuspage-header';
|
||||
export * from './upl-statuspage-incidents';
|
||||
export * from './upl-statuspage-statusbar';
|
||||
export * from './upl-statuspage-statusdetails';
|
||||
export * from './upl-statuspage-statusmonth';
|
||||
export * from './upl-statuspage-assetsselector.js';
|
||||
export * from './upl-statuspage-footer.js';
|
||||
export * from './upl-statuspage-header.js';
|
||||
export * from './upl-statuspage-incidents.js';
|
||||
export * from './upl-statuspage-statusbar.js';
|
||||
export * from './upl-statuspage-statusdetails.js';
|
||||
export * from './upl-statuspage-statusmonth.js';
|
||||
|
@ -7,7 +7,7 @@ import {
|
||||
} from '@designestate/dees-element';
|
||||
import * as domtools from '@designestate/dees-domtools';
|
||||
|
||||
import './internal/uplinternal-miniheading';
|
||||
import './internal/uplinternal-miniheading.js';
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
|
@ -1,5 +1,13 @@
|
||||
import * as plugins from '../plugins';
|
||||
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
|
||||
import * as plugins from '../plugins.js';
|
||||
import {
|
||||
DeesElement,
|
||||
property,
|
||||
html,
|
||||
customElement,
|
||||
TemplateResult,
|
||||
css,
|
||||
cssManager,
|
||||
} from '@designestate/dees-element';
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
@ -10,27 +18,24 @@ declare global {
|
||||
@customElement('upl-statuspage-incidents')
|
||||
export class UplStatuspageIncidents extends DeesElement {
|
||||
// STATIC
|
||||
public static demo = () => html`
|
||||
<upl-statuspage-incidents></upl-statuspage-incidents>
|
||||
`;
|
||||
public static demo = () => html` <upl-statuspage-incidents></upl-statuspage-incidents> `;
|
||||
|
||||
// INSTANCE
|
||||
@property({
|
||||
type: Array
|
||||
type: Array,
|
||||
})
|
||||
public currentIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
||||
|
||||
@property({
|
||||
type: Array
|
||||
type: Array,
|
||||
})
|
||||
public pastIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
||||
|
||||
@property({
|
||||
type: Boolean
|
||||
type: Boolean,
|
||||
})
|
||||
public whitelabel = false;
|
||||
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
@ -39,57 +44,47 @@ export class UplStatuspageIncidents extends DeesElement {
|
||||
plugins.domtools.elementBasic.staticStyles,
|
||||
css`
|
||||
:host {
|
||||
display: block;
|
||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||
font-family: Roboto Mono;
|
||||
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||
}
|
||||
display: block;
|
||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||
font-family: Roboto Mono;
|
||||
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||
}
|
||||
|
||||
.mainbox {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
}
|
||||
.mainbox {
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.noIncidentBox {
|
||||
background: #333;
|
||||
padding: 10px;
|
||||
margin-bottom: 15px;
|
||||
border-radius: 3px;
|
||||
|
||||
}
|
||||
|
||||
`
|
||||
]
|
||||
.noIncidentBox {
|
||||
background: #333;
|
||||
padding: 10px;
|
||||
margin-bottom: 15px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
||||
public render(): TemplateResult {
|
||||
return html`
|
||||
<style></style>
|
||||
<div class="mainbox">
|
||||
<uplinternal-miniheading>
|
||||
Current Incidents
|
||||
</uplinternal-miniheading>
|
||||
<div class="noIncidentBox">
|
||||
No incidents ongoing.
|
||||
</div>
|
||||
<uplinternal-miniheading>
|
||||
Past Incidents
|
||||
</uplinternal-miniheading>
|
||||
<div class="noIncidentBox">
|
||||
No past incidents in the last 90 days.
|
||||
</div>
|
||||
<uplinternal-miniheading> Current Incidents </uplinternal-miniheading>
|
||||
${this.currentIncidences.length
|
||||
? html``
|
||||
: html` <div class="noIncidentBox">No incidents ongoing.</div> `}
|
||||
<uplinternal-miniheading> Past Incidents </uplinternal-miniheading>
|
||||
${this.pastIncidences.length
|
||||
? html``
|
||||
: html` <div class="noIncidentBox">No past incidents in the last 90 days.</div> `}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
public dispatchReportNewIncident() {
|
||||
this.dispatchEvent(new CustomEvent('reportNewIncident', {
|
||||
|
||||
}))
|
||||
this.dispatchEvent(new CustomEvent('reportNewIncident', {}));
|
||||
}
|
||||
|
||||
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 {
|
||||
DeesElement,
|
||||
property,
|
||||
@ -9,7 +9,7 @@ import {
|
||||
cssManager,
|
||||
} from '@designestate/dees-element';
|
||||
|
||||
import './internal/uplinternal-miniheading';
|
||||
import './internal/uplinternal-miniheading.js';
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
} from '@designestate/dees-element';
|
||||
import * as domtools from '@designestate/dees-domtools';
|
||||
|
||||
import './internal/uplinternal-miniheading';
|
||||
import './internal/uplinternal-miniheading.js';
|
||||
|
||||
declare global {
|
||||
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