Skip to content
Commits on Source (3)
**/*.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
......
{
"name": "@coscine/projectcreate",
"version": "1.1.4",
"version": "1.2.0",
"private": true,
"directories": {
"doc": "docs"
......@@ -14,7 +14,7 @@
"dependencies": {
"@coscine/app-util": "^1.9.0",
"@coscine/component-library": "^1.9.0",
"@coscine/project-creation": "^1.14.0",
"@coscine/project-creation": "^1.15.1",
"@itcenter-layout/bootstrap": "^1.5.5",
"@itcenter-layout/masterpage": "^1.3.0",
"@types/jquery": "^3.5.2",
......@@ -32,20 +32,38 @@
"@semantic-release/npm": "^7.0.6",
"@semantic-release/release-notes-generator": "^9.0.1",
"@types/node": "^14.14.20",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-typescript": "^4.5.7",
"@vue/cli-service": "^4.5.7",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^7.0.0",
"conventional-changelog-eslint": "3.0.9",
"core-js": "^3.8.2",
"eslint": "^7.17.0",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^6.2.2",
"lint-staged": "^9.5.0",
"prettier": "^2.2.1",
"semantic-release": "^17.3.1",
"typescript": "~4.3.3",
"tslib": "^2.3.0",
"typescript": "^4.4.3",
"vue-template-compiler": "^2.6.12"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,vue,ts,tsx}": [
"vue-cli-service lint",
"git add"
]
},
"repository": {
"type": "git",
"url": "https://git.rwth-aachen.de/coscine/frontend/apps/projectcreate.git"
},
"license": "MIT"
"license": "MIT",
"packageManager": "yarn@3.1.0"
}
<template>
<div id="projectcreate" class="container">
<h4 style="text-align: left;">{{ $t('headline') }}:</h4>
<component
:is="currentComponent"
v-bind:parentId="currentProjectId"
<h4 style="text-align: left">{{ $t("headline") }}:</h4>
<component
:is="currentComponent"
v-bind:parentId="currentProjectId"
v-bind:languageLocale="language"
/>
</div>
</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: 'projectcreate',
name: "projectcreate",
data() {
return {
currentComponent: 'CreateProject',
currentComponent: "CreateProject",
currentProjectId: GuidUtil.getProjectId(),
language: LanguageUtil.getLanguage(),
};
......
declare var coscine: {
i18n: {
projectcreate: {},
},
declare const coscine: {
i18n: {
projectcreate: 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 Vue from 'vue';
import ProjectCreateApp from './ProjectCreateApp.vue';
import VueI18n from 'vue-i18n';
import { LanguageUtil } from '@coscine/app-util';
import jQuery from "jquery";
import BootstrapVue from "bootstrap-vue";
import Vue from "vue";
import ProjectCreateApp from "./ProjectCreateApp.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.projectcreate,
silentFallbackWarn: true,
});
const i18n = new VueI18n({
locale: LanguageUtil.getLanguage(),
messages: coscine.i18n.projectcreate,
silentFallbackWarn: true,
});
new Vue({
render: (h) => h(ProjectCreateApp),
i18n,
}).$mount('projectcreate');
new Vue({
render: (h) => h(ProjectCreateApp),
i18n,
}).$mount("projectcreate");
});
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: 9276,
},
publicPath: './',
configureWebpack: {
devtool: 'source-map',
devServer: {
port: 9276,
}
},
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.