Commit 8ec1df72 authored by Petar Hristov's avatar Petar Hristov 💬
Browse files

Update: Changes in Participating Organizations Search (rpdm/issues#39)

parent 27ee2fb5
**/*.min.js
\ No newline at end of file
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended",
"@vue/prettier",
"@vue/prettier/@typescript-eslint",
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
},
};
......@@ -18,7 +18,7 @@ This template includes:
## Project setup
```
npm install
npm install
```
### Compiles and hot-reloads for development
......
<template>
<div id="projectedit" class="container">
<h4 style="text-align: left;">{{ $t('headline') }}:</h4>
<component
:is="currentComponent"
<h4 style="text-align: left">{{ $t("headline") }}:</h4>
<component
:is="currentComponent"
:projectId="selectedProjectId"
:languageLocale="language"
/>
......@@ -10,18 +10,18 @@
</template>
<script lang="ts">
import Vue from 'vue';
import CreateProject from '@coscine/project-creation';
import '@coscine/project-creation/dist/index.css';
import { LanguageUtil, GuidUtil } from '@coscine/app-util';
import Vue from "vue";
import CreateProject from "@coscine/project-creation";
import "@coscine/project-creation/dist/index.css";
import { LanguageUtil, GuidUtil } from "@coscine/app-util";
Vue.use(CreateProject);
export default Vue.extend({
name: 'projectedit',
name: "projectedit",
data() {
return {
currentComponent: 'CreateProject',
currentComponent: "CreateProject",
selectedProjectId: GuidUtil.getProjectId(),
language: LanguageUtil.getLanguage(),
};
......
declare var coscine: {
authorization: {
bearer: string,
},
i18n: {
projectedit: {},
},
declare let coscine: {
authorization: {
bearer: string;
};
i18n: {
projectedit: VueI18n.LocaleMessages | undefined;
};
};
declare var _spPageContextInfo: any;
declare module '@itcenter-layout/bootstrap'
\ No newline at end of file
declare const _spPageContextInfo: unknown;
declare module "@itcenter-layout/bootstrap";
import jQuery from 'jquery';
import BootstrapVue from 'bootstrap-vue';
import '@itcenter-layout/bootstrap/dist/css/rwth-theme.css';
import '@itcenter-layout/bootstrap/dist/css/material-icons.css';
import '@itcenter-layout/masterpage/dist/css/itcenter-masterdesign-masterpage.css';
import Vue from 'vue';
import ProjectEditApp from './ProjectEditApp.vue';
import VueI18n from 'vue-i18n';
import { LanguageUtil } from '@coscine/app-util';
import jQuery from "jquery";
import BootstrapVue from "bootstrap-vue";
import "@itcenter-layout/bootstrap/dist/css/rwth-theme.css";
import "@itcenter-layout/bootstrap/dist/css/material-icons.css";
import "@itcenter-layout/masterpage/dist/css/itcenter-masterdesign-masterpage.css";
import Vue from "vue";
import ProjectEditApp from "./ProjectEditApp.vue";
import VueI18n from "vue-i18n";
import { LanguageUtil } from "@coscine/app-util";
Vue.config.productionTip = false;
Vue.use(BootstrapVue);
Vue.use(VueI18n);
jQuery(() => {
const i18n = new VueI18n({
locale: LanguageUtil.getLanguage(),
messages: coscine.i18n.projectedit,
silentFallbackWarn: true,
});
const i18n = new VueI18n({
locale: LanguageUtil.getLanguage(),
messages: coscine.i18n.projectedit,
silentFallbackWarn: true,
});
new Vue({
render: (h) => h(ProjectEditApp),
i18n,
}).$mount('projectedit');
new Vue({
render: (h) => h(ProjectEditApp),
i18n,
}).$mount("projectedit");
});
import Vue, { VNode } from 'vue';
import Vue, { VNode } from "vue";
declare global {
namespace JSX {
......
declare module '*.vue' {
import Vue from 'vue';
declare module "*.vue" {
import Vue from "vue";
export default Vue;
}
declare module '@coscine/project-creation';
declare module '@coscine/app-util';
declare module '@coscine/component-library';
declare module "@coscine/project-creation";
declare module "@coscine/app-util";
declare module "@coscine/component-library";
declare module "*.png" {
const value: any;
const value: string;
export default value;
}
\ No newline at end of file
}
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"target": "es6",
"module": "es6",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
......@@ -24,7 +24,7 @@
]
},
"lib": [
"esnext",
"es6",
"dom",
"dom.iterable",
"scripthost"
......
module.exports = {
devServer: {
disableHostCheck: true,
},
publicPath: "./",
configureWebpack: {
devtool: "source-map",
devServer: {
disableHostCheck: true,
port: 9272,
},
publicPath: './',
configureWebpack: {
devtool: 'source-map',
devServer: {
port: 9272,
}
},
filenameHashing: false,
chainWebpack: config => {
config.optimization.delete('splitChunks')
},
css: {
extract: false,
},
}
\ No newline at end of file
},
filenameHashing: false,
chainWebpack: (config) => {
config.optimization.delete("splitChunks");
},
css: {
extract: false,
},
};
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment