mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Merge branch 'master' into travis/github
This commit is contained in:
commit
7bfcd4f624
7
jenkins.sh
Normal file
7
jenkins.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
npm --version
|
||||||
|
node --version
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
rm -f web.zip
|
||||||
|
zip -r web.zip web-dist/*
|
8540
package-lock.json
generated
8540
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
30
package.json
30
package.json
@ -20,19 +20,19 @@
|
|||||||
"author": "Travis Ralston",
|
"author": "Travis Ralston",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.17.2",
|
"body-parser": "^1.17.2",
|
||||||
"chalk": "^1.1.3",
|
"chalk": "^2.1.0",
|
||||||
"config": "^1.26.1",
|
"config": "^1.26.2",
|
||||||
"db-migrate": "^0.10.0-beta.20",
|
"db-migrate": "^0.10.0-beta.23",
|
||||||
"db-migrate-sqlite3": "^0.2.1",
|
"db-migrate-sqlite3": "^0.2.1",
|
||||||
"express": "^4.15.3",
|
"express": "^4.15.4",
|
||||||
"js-yaml": "^3.8.4",
|
"js-yaml": "^3.9.1",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
"matrix-js-sdk": "^0.7.13",
|
"matrix-js-sdk": "^0.8.2",
|
||||||
"moment": "^2.18.1",
|
"moment": "^2.18.1",
|
||||||
"random-string": "^0.2.0",
|
"random-string": "^0.2.0",
|
||||||
"request": "^2.81.0",
|
"request": "^2.81.0",
|
||||||
"sequelize": "^4.2.0",
|
"sequelize": "^4.7.5",
|
||||||
"sqlite3": "^3.1.8",
|
"sqlite3": "^3.1.9",
|
||||||
"winston": "^2.3.1"
|
"winston": "^2.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -45,11 +45,10 @@
|
|||||||
"@angular/platform-browser": "^4.2.1",
|
"@angular/platform-browser": "^4.2.1",
|
||||||
"@angular/platform-browser-dynamic": "^4.2.1",
|
"@angular/platform-browser-dynamic": "^4.2.1",
|
||||||
"@angular/router": "^4.2.1",
|
"@angular/router": "^4.2.1",
|
||||||
"@angularclass/hmr": "^1.2.2",
|
"@angularclass/hmr": "^2.1.0",
|
||||||
"@angularclass/hmr-loader": "^3.0.2",
|
"@angularclass/hmr-loader": "^3.0.2",
|
||||||
"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.26",
|
"@ng-bootstrap/ng-bootstrap": "^1.0.0-alpha.26",
|
||||||
"@types/node": "^6.11.0",
|
"@types/node": "^6.0.78",
|
||||||
"angular2-modal": "^2.0.3",
|
|
||||||
"angular2-template-loader": "^0.6.2",
|
"angular2-template-loader": "^0.6.2",
|
||||||
"angular2-toaster": "^4.0.0",
|
"angular2-toaster": "^4.0.0",
|
||||||
"angular2-ui-switch": "^1.2.0",
|
"angular2-ui-switch": "^1.2.0",
|
||||||
@ -59,14 +58,15 @@
|
|||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
"css-loader": "^0.28.4",
|
"css-loader": "^0.28.4",
|
||||||
"cssnano": "^3.10.0",
|
"cssnano": "^3.10.0",
|
||||||
"extract-text-webpack-plugin": "^2.1.2",
|
"extract-text-webpack-plugin": "^3.0.0",
|
||||||
"file-loader": "^0.11.2",
|
"file-loader": "^1.0.0",
|
||||||
"html-loader": "^0.4.5",
|
"html-loader": "^0.5.1",
|
||||||
"html-webpack-plugin": "^2.28.0",
|
"html-webpack-plugin": "^2.28.0",
|
||||||
"jquery": "^3.2.1",
|
"jquery": "^3.2.1",
|
||||||
"json-loader": "^0.5.4",
|
"json-loader": "^0.5.4",
|
||||||
|
"ngx-modialog": "^3.0.3",
|
||||||
"node-sass": "^4.5.2",
|
"node-sass": "^4.5.2",
|
||||||
"postcss-cssnext": "^2.11.0",
|
"postcss-cssnext": "^3.0.0",
|
||||||
"postcss-import": "^10.0.0",
|
"postcss-import": "^10.0.0",
|
||||||
"postcss-loader": "^2.0.5",
|
"postcss-loader": "^2.0.5",
|
||||||
"postcss-scss": "^1.0.0",
|
"postcss-scss": "^1.0.0",
|
||||||
|
@ -2,9 +2,9 @@ import { Component } from "@angular/core";
|
|||||||
import "../style/app.scss";
|
import "../style/app.scss";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-app', // <my-app></my-app>
|
selector: "my-app", // <my-app></my-app>
|
||||||
templateUrl: './app.component.html',
|
templateUrl: "./app.component.html",
|
||||||
styleUrls: ['./app.component.scss'],
|
styleUrls: ["./app.component.scss"],
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
|||||||
import { IntegrationComponent } from "./integration/integration.component";
|
import { IntegrationComponent } from "./integration/integration.component";
|
||||||
import { ScalarCloseComponent } from "./riot/scalar-close/scalar-close.component";
|
import { ScalarCloseComponent } from "./riot/scalar-close/scalar-close.component";
|
||||||
import { IntegrationService } from "./shared/integration.service";
|
import { IntegrationService } from "./shared/integration.service";
|
||||||
import { BootstrapModalModule } from "angular2-modal/plugins/bootstrap";
|
import { BootstrapModalModule } from "ngx-modialog/plugins/bootstrap";
|
||||||
import { ModalModule } from "angular2-modal";
|
import { ModalModule } from "ngx-modialog";
|
||||||
import { RssConfigComponent } from "./configs/rss/rss-config.component";
|
import { RssConfigComponent } from "./configs/rss/rss-config.component";
|
||||||
import { IrcConfigComponent } from "./configs/irc/irc-config.component";
|
import { IrcConfigComponent } from "./configs/irc/irc-config.component";
|
||||||
import { IrcApiService } from "./shared/irc-api.service";
|
import { IrcApiService } from "./shared/irc-api.service";
|
||||||
@ -65,7 +65,7 @@ export class AppModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hmrOnInit(store) {
|
hmrOnInit(store) {
|
||||||
console.log('HMR store', store);
|
console.log("HMR store", store);
|
||||||
}
|
}
|
||||||
|
|
||||||
hmrOnDestroy(store) {
|
hmrOnDestroy(store) {
|
||||||
|
@ -3,8 +3,8 @@ import { HomeComponent } from "./home/home.component";
|
|||||||
import { RiotComponent } from "./riot/riot.component";
|
import { RiotComponent } from "./riot/riot.component";
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{path: '', component: HomeComponent},
|
{path: "", component: HomeComponent},
|
||||||
{path: 'riot', component: RiotComponent},
|
{path: "riot", component: RiotComponent},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const routing = RouterModule.forRoot(routes);
|
export const routing = RouterModule.forRoot(routes);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Component, OnDestroy } from "@angular/core";
|
import { Component, OnDestroy } from "@angular/core";
|
||||||
import { IRCIntegration } from "../../shared/models/integration";
|
import { IRCIntegration } from "../../shared/models/integration";
|
||||||
import { ModalComponent, DialogRef } from "angular2-modal";
|
import { ModalComponent, DialogRef } from "ngx-modialog";
|
||||||
import { ConfigModalContext } from "../../integration/integration.component";
|
import { ConfigModalContext } from "../../integration/integration.component";
|
||||||
import { IrcApiService } from "../../shared/irc-api.service";
|
import { IrcApiService } from "../../shared/irc-api.service";
|
||||||
import { ToasterService } from "angular2-toaster";
|
import { ToasterService } from "angular2-toaster";
|
||||||
@ -9,9 +9,9 @@ import { ApiService } from "../../shared/api.service";
|
|||||||
import { Subscription } from "rxjs";
|
import { Subscription } from "rxjs";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-irc-config',
|
selector: "my-irc-config",
|
||||||
templateUrl: './irc-config.component.html',
|
templateUrl: "./irc-config.component.html",
|
||||||
styleUrls: ['./irc-config.component.scss', './../config.component.scss'],
|
styleUrls: ["./irc-config.component.scss", "./../config.component.scss"],
|
||||||
})
|
})
|
||||||
export class IrcConfigComponent implements ModalComponent<ConfigModalContext>, OnDestroy {
|
export class IrcConfigComponent implements ModalComponent<ConfigModalContext>, OnDestroy {
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
import { RSSIntegration } from "../../shared/models/integration";
|
import { RSSIntegration } from "../../shared/models/integration";
|
||||||
import { ModalComponent, DialogRef } from "angular2-modal";
|
import { ModalComponent, DialogRef } from "ngx-modialog";
|
||||||
import { ConfigModalContext } from "../../integration/integration.component";
|
import { ConfigModalContext } from "../../integration/integration.component";
|
||||||
import { ToasterService } from "angular2-toaster";
|
import { ToasterService } from "angular2-toaster";
|
||||||
import { ApiService } from "../../shared/api.service";
|
import { ApiService } from "../../shared/api.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-rss-config',
|
selector: "my-rss-config",
|
||||||
templateUrl: './rss-config.component.html',
|
templateUrl: "./rss-config.component.html",
|
||||||
styleUrls: ['./rss-config.component.scss', './../config.component.scss'],
|
styleUrls: ["./rss-config.component.scss", "./../config.component.scss"],
|
||||||
})
|
})
|
||||||
export class RssConfigComponent implements ModalComponent<ConfigModalContext> {
|
export class RssConfigComponent implements ModalComponent<ConfigModalContext> {
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-home',
|
selector: "my-home",
|
||||||
templateUrl: './home.component.html',
|
templateUrl: "./home.component.html",
|
||||||
styleUrls: ['./home.component.scss'],
|
styleUrls: ["./home.component.scss"],
|
||||||
})
|
})
|
||||||
export class HomeComponent {
|
export class HomeComponent {
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Component, Input, Output, EventEmitter, ViewContainerRef } from "@angular/core";
|
import { Component, Input, Output, EventEmitter } from "@angular/core";
|
||||||
import { Integration } from "../shared/models/integration";
|
import { Integration } from "../shared/models/integration";
|
||||||
import { Overlay, overlayConfigFactory } from "angular2-modal";
|
import { overlayConfigFactory } from "ngx-modialog";
|
||||||
import { Modal, BSModalContext } from "angular2-modal/plugins/bootstrap";
|
import { Modal, BSModalContext } from "ngx-modialog/plugins/bootstrap";
|
||||||
import { IntegrationService } from "../shared/integration.service";
|
import { IntegrationService } from "../shared/integration.service";
|
||||||
|
|
||||||
export class ConfigModalContext extends BSModalContext {
|
export class ConfigModalContext extends BSModalContext {
|
||||||
@ -11,9 +11,9 @@ export class ConfigModalContext extends BSModalContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-integration',
|
selector: "my-integration",
|
||||||
templateUrl: './integration.component.html',
|
templateUrl: "./integration.component.html",
|
||||||
styleUrls: ['./integration.component.scss'],
|
styleUrls: ["./integration.component.scss"],
|
||||||
})
|
})
|
||||||
export class IntegrationComponent {
|
export class IntegrationComponent {
|
||||||
|
|
||||||
@ -22,8 +22,8 @@ export class IntegrationComponent {
|
|||||||
@Input() scalarToken: string;
|
@Input() scalarToken: string;
|
||||||
@Output() updated: EventEmitter<any> = new EventEmitter();
|
@Output() updated: EventEmitter<any> = new EventEmitter();
|
||||||
|
|
||||||
constructor(overlay: Overlay, vcRef: ViewContainerRef, public modal: Modal) {
|
constructor(/*overlay: Overlay, vcRef: ViewContainerRef, */public modal: Modal) {
|
||||||
overlay.defaultViewContainer = vcRef;
|
// overlay.defaultViewContainer = vcRef;
|
||||||
}
|
}
|
||||||
|
|
||||||
public update(): void {
|
public update(): void {
|
||||||
@ -37,7 +37,7 @@ export class IntegrationComponent {
|
|||||||
roomId: this.roomId,
|
roomId: this.roomId,
|
||||||
scalarToken: this.scalarToken,
|
scalarToken: this.scalarToken,
|
||||||
isBlocking: false,
|
isBlocking: false,
|
||||||
size: 'lg'
|
size: "lg"
|
||||||
}, BSModalContext));
|
}, BSModalContext));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,9 @@ import { IntegrationService } from "../shared/integration.service";
|
|||||||
import * as _ from "lodash";
|
import * as _ from "lodash";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-riot',
|
selector: "my-riot",
|
||||||
templateUrl: './riot.component.html',
|
templateUrl: "./riot.component.html",
|
||||||
styleUrls: ['./riot.component.scss'],
|
styleUrls: ["./riot.component.scss"],
|
||||||
})
|
})
|
||||||
export class RiotComponent {
|
export class RiotComponent {
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ export class RiotComponent {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
integration.isEnabled = (payload.response.membership === 'join' || payload.response.membership === 'invite');
|
integration.isEnabled = (payload.response.membership === "join" || payload.response.membership === "invite");
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
integration.isEnabled = false;
|
integration.isEnabled = false;
|
||||||
@ -117,8 +117,8 @@ export class RiotComponent {
|
|||||||
|
|
||||||
promise.then(() => {
|
promise.then(() => {
|
||||||
if (integration.isEnabled)
|
if (integration.isEnabled)
|
||||||
this.toaster.pop('success', integration.name + " was invited to the room");
|
this.toaster.pop("success", integration.name + " was invited to the room");
|
||||||
else this.toaster.pop('success', integration.name + " was removed from the room");
|
else this.toaster.pop("success", integration.name + " was removed from the room");
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
let errorMessage = "Could not update integration status";
|
let errorMessage = "Could not update integration status";
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@ import { Component } from "@angular/core";
|
|||||||
import { ScalarService } from "../../shared/scalar.service";
|
import { ScalarService } from "../../shared/scalar.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-scalar-close',
|
selector: "my-scalar-close",
|
||||||
templateUrl: './scalar-close.component.html',
|
templateUrl: "./scalar-close.component.html",
|
||||||
styleUrls: ['./scalar-close.component.scss'],
|
styleUrls: ["./scalar-close.component.scss"],
|
||||||
})
|
})
|
||||||
export class ScalarCloseComponent {
|
export class ScalarCloseComponent {
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Integration } from "./models/integration";
|
import { Integration } from "./models/integration";
|
||||||
import { RssConfigComponent } from "../configs/rss/rss-config.component";
|
import { RssConfigComponent } from "../configs/rss/rss-config.component";
|
||||||
import { ContainerContent } from "angular2-modal";
|
import { ContainerContent } from "ngx-modialog";
|
||||||
import { IrcConfigComponent } from "../configs/irc/irc-config.component";
|
import { IrcConfigComponent } from "../configs/irc/irc-config.component";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -4,7 +4,7 @@ import { AppModule } from "./app/app.module";
|
|||||||
|
|
||||||
// depending on the env mode, enable prod mode or add debugging modules
|
// depending on the env mode, enable prod mode or add debugging modules
|
||||||
//noinspection TypeScriptUnresolvedVariable
|
//noinspection TypeScriptUnresolvedVariable
|
||||||
if (process.env.ENV === 'build') {
|
if (process.env.ENV === "build") {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12,10 +12,10 @@ export function main() {
|
|||||||
return platformBrowserDynamic().bootstrapModule(AppModule);
|
return platformBrowserDynamic().bootstrapModule(AppModule);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.readyState === 'complete') {
|
if (document.readyState === "complete") {
|
||||||
main();
|
main();
|
||||||
} else {
|
} else {
|
||||||
document.addEventListener('DOMContentLoaded', main);
|
document.addEventListener("DOMContentLoaded", main);
|
||||||
}
|
}
|
||||||
|
|
||||||
(<any>String.prototype).hashCode = function () {
|
(<any>String.prototype).hashCode = function () {
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
import "core-js/client/shim";
|
import "core-js/client/shim";
|
||||||
import "reflect-metadata";
|
import "reflect-metadata";
|
||||||
import "ts-helpers";
|
import "ts-helpers";
|
||||||
require('zone.js/dist/zone');
|
require("zone.js/dist/zone");
|
||||||
|
|
||||||
//noinspection TypeScriptUnresolvedVariable
|
//noinspection TypeScriptUnresolvedVariable
|
||||||
if (process.env.ENV === 'build') {
|
if (process.env.ENV === "build") {
|
||||||
// Production
|
// Production
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Development
|
// Development
|
||||||
|
|
||||||
Error['stackTraceLimit'] = Infinity;
|
Error["stackTraceLimit"] = Infinity;
|
||||||
|
|
||||||
//noinspection TypeScriptUnresolvedFunction
|
//noinspection TypeScriptUnresolvedFunction
|
||||||
require('zone.js/dist/long-stack-trace-zone');
|
require("zone.js/dist/long-stack-trace-zone");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user