Grafana ui library poc
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
export class Google {
|
||||
hello() {
|
||||
return 'hello';
|
||||
}
|
||||
}
|
||||
|
||||
class Singleton {
|
||||
constructor(private state) {}
|
||||
|
||||
hello() {
|
||||
return this.state;
|
||||
}
|
||||
|
||||
change() {
|
||||
this.state = 'mod2';
|
||||
}
|
||||
}
|
||||
|
||||
const singletonSrv = new Singleton('hello');
|
||||
|
||||
export { singletonSrv };
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "grafana-ui",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.ts",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
Reference in New Issue
Block a user