diff --git a/app/package-lock.json b/app/package-lock.json index 35bff8d..7b493c2 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1092,6 +1092,12 @@ "resolved": "https://registry.npmjs.org/@lzhoucs/vuetify/-/vuetify-1.5.14-modified.5.tgz", "integrity": "sha512-joWHpldYaSBFavc9xqaQRLMB/aGYUz4MCJr5dM4HDlAZeVJQqjHak5+YBArN1O3BdOLTXIuTw4WN5BaSKBRhQw==" }, + "@mdi/font": { + "version": "5.9.55", + "resolved": "https://registry.npmjs.org/@mdi/font/-/font-5.9.55.tgz", + "integrity": "sha512-jswRF6q3eq8NWpWiqct6q+6Fg/I7nUhrxYJfiEM8JJpap0wVJLQdbKtyS65GdlK7S7Ytnx3TTi/bmw+tBhkGmg==", + "dev": true + }, "@mrmlnc/readdir-enhanced": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", @@ -1715,6 +1721,16 @@ "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "optional": true, + "requires": { + "color-convert": "^2.0.1" + } + }, "cacache": { "version": "13.0.1", "resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz", @@ -1747,6 +1763,34 @@ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "optional": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "optional": true + }, "css-loader": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-3.6.0.tgz", @@ -1790,6 +1834,13 @@ } } }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "optional": true + }, "icss-utils": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-4.1.1.tgz", @@ -1799,6 +1850,18 @@ "postcss": "^7.0.14" } }, + "loader-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", + "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, "postcss-modules-extract-imports": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-2.0.0.tgz", @@ -1862,6 +1925,16 @@ "minipass": "^3.1.1" } }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "optional": true, + "requires": { + "has-flag": "^4.0.0" + } + }, "terser-webpack-plugin": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz", @@ -1878,6 +1951,18 @@ "terser": "^4.6.12", "webpack-sources": "^1.4.3" } + }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.1.2", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz", + "integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + } } } }, @@ -2638,6 +2723,16 @@ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dev": true, + "optional": true, + "requires": { + "file-uri-to-path": "1.0.0" + } + }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -5346,6 +5441,13 @@ "schema-utils": "^2.5.0" } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "dev": true, + "optional": true + }, "filesize": { "version": "3.6.1", "resolved": "https://registry.npmjs.org/filesize/-/filesize-3.6.1.tgz", @@ -7116,6 +7218,12 @@ "object-visit": "^1.0.0" } }, + "material-design-icons-iconfont": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/material-design-icons-iconfont/-/material-design-icons-iconfont-6.1.0.tgz", + "integrity": "sha512-wRJtOo1v1ch+gN8PRsj0IGJznk+kQ8mz13ds/nuhLI+Qyf/931ZlRpd92oq0IRPpZIb+bhX8pRjzIVdcPDKmiQ==", + "dev": true + }, "md5.js": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", @@ -11111,87 +11219,6 @@ } } }, - "vue-loader-v16": { - "version": "npm:vue-loader@16.1.2", - "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz", - "integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==", - "dev": true, - "optional": true, - "requires": { - "chalk": "^4.1.0", - "hash-sum": "^2.0.0", - "loader-utils": "^2.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "optional": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "optional": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "optional": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "optional": true - }, - "loader-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", - "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", - "dev": true, - "optional": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "optional": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "vue-router": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz", @@ -11369,6 +11396,7 @@ "dev": true, "optional": true, "requires": { + "bindings": "^1.5.0", "nan": "^2.12.1" } }, @@ -11691,6 +11719,7 @@ "dev": true, "optional": true, "requires": { + "bindings": "^1.5.0", "nan": "^2.12.1" } }, diff --git a/app/package.json b/app/package.json index 9e08ed0..8e95a95 100644 --- a/app/package.json +++ b/app/package.json @@ -18,6 +18,7 @@ "vuetify": "^2.4.7" }, "devDependencies": { + "@mdi/font": "^5.9.55", "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-service": "~4.5.0", @@ -25,6 +26,7 @@ "deepmerge": "^4.2.2", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", + "material-design-icons-iconfont": "^6.1.0", "sass": "^1.32.6", "sass-loader": "^10.1.1", "vue-cli-plugin-vuetify": "^2.1.0", diff --git a/app/public/index.html b/app/public/index.html index 6702573..6ad09e5 100644 --- a/app/public/index.html +++ b/app/public/index.html @@ -5,7 +5,7 @@ - + <%= htmlWebpackPlugin.options.title %> diff --git a/app/src/components/Login.vue b/app/src/components/Login.vue index bd9e8a9..25a3af0 100644 --- a/app/src/components/Login.vue +++ b/app/src/components/Login.vue @@ -12,7 +12,7 @@ > - + com.moze rms 0.0.1-SNAPSHOT - jar + war rms @@ -116,6 +116,11 @@ + org.springframework.boot + spring-boot-starter-tomcat + provided + + org.apache.poi poi-ooxml 4.1.0 diff --git a/rms.iml b/rms.iml deleted file mode 100644 index 5265b35..0000000 --- a/rms.iml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/moze/rms/ServletInitializer.java b/src/main/java/com/moze/rms/ServletInitializer.java new file mode 100644 index 0000000..94de471 --- /dev/null +++ b/src/main/java/com/moze/rms/ServletInitializer.java @@ -0,0 +1,11 @@ +package com.moze.rms; + +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +public class ServletInitializer extends SpringBootServletInitializer { + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(RmsApplication.class); + } +} + diff --git a/src/main/resources/table.sql b/src/main/resources/table.sql new file mode 100644 index 0000000..08f9ebf --- /dev/null +++ b/src/main/resources/table.sql @@ -0,0 +1,191 @@ +create table account +( + pwd nvarchar(256), + username nvarchar(256), + department nvarchar(256), + account nvarchar(256), + level nvarchar(256), + id nvarchar(256) +) + go + +create table datafile +( + id int identity + primary key, + name nvarchar(256), + type nvarchar(256), + dataorfile nvarchar(256), + hostname nvarchar(256), + store_position nvarchar(256), + owner nvarchar(256), + keep_department nvarchar(256), + keeper nvarchar(256), + personal nvarchar(256), + expire_date nvarchar(256), + level nvarchar(256), + remark varchar(256) +) + go + +create table department +( + department nvarchar(256) +) + go + +create table hardware +( + id int identity + primary key, + hostname nvarchar(256), + type nvarchar(256), + descript nvarchar(256), + ip1 nvarchar(256), + ip2 nvarchar(256), + model nvarchar(256), + environment nvarchar(256), + position nvarchar(256), + position_number nvarchar(256), + amount nvarchar(256), + owner_department nvarchar(256), + keep_department nvarchar(256), + keeper nvarchar(256), + remark nvarchar(256) +) + go + +create table person +( + name nvarchar(256), + department nvarchar(256), + type nvarchar(256), + agent nvarchar(256), + remark nvarchar(256), + id int identity + constraint person_pk + primary key nonclustered +) + go + +create unique index person_id_uindex + on person (id) +go + +create table search +( + tablename nvarchar(256), + id nvarchar(256), + text nvarchar(256) +) + go + +create table software +( + id int identity + primary key, + name nvarchar(256), + type nvarchar(256), + hostname nvarchar(256), + software_type nvarchar(256), + environment nvarchar(256), + owner_department nvarchar(256), + keep_department nvarchar(256), + keeper nvarchar(256), + maintain_company nvarchar(256), + despcript nvarchar(256), + amount nvarchar(256), + remark nvarchar(256) +) + go + +create table mapping.mapping_col +( + tablename nvarchar(256), + colname nvarchar(256), + descript nvarchar(256), + level nvarchar(256), + type nvarchar(256), + [index] nvarchar(256), + isselect nvarchar(256), + isrequire nvarchar(256), + issearch nvarchar(256), + isexport nvarchar(256) + ) + go + +create table mapping.mapping_datafile +( + type nvarchar(256) not null + constraint mapping_datafile_pk + primary key nonclustered, + name nvarchar(256) not null, + descript nvarchar(256), + example nvarchar(256) +) + go + +create unique index mapping_datafile_type_uindex + on mapping.mapping_datafile (type) +go + +create table mapping.mapping_hardware +( + type nvarchar(256) not null + constraint mapping_hardware_pk + primary key nonclustered, + name nvarchar(256) not null, + descript nvarchar(256), + example nvarchar(256) +) + go + +create unique index mapping_hardware_type_uindex + on mapping.mapping_hardware (type) +go + +create table mapping.mapping_person +( + type nvarchar(256) not null + constraint mapping_person_pk + primary key nonclustered, + name nvarchar(256), + descript nvarchar(256), + example nvarchar(256) +) + go + +create unique index mapping_person_type_uindex + on mapping.mapping_person (type) +go + +create table mapping.mapping_software +( + type nvarchar(256) not null + constraint mapping_software_pk + primary key nonclustered, + name nvarchar(256), + descript nvarchar(256), + example nvarchar(256) +) + go + +create unique index mapping_software_type_uindex + on mapping.mapping_software (type) +go + +create table mapping.mapping_table +( + tablename nvarchar(256), + descript nvarchar(256) +) + go + +create table mapping.selectItem +( + tablename nvarchar(256), + colname nvarchar(256), + item nvarchar(256), + [index] int +) + go \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..e69de29