sur-onlyoffice 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/onlyoffice.es.js +326 -0
- package/dist/onlyoffice.umd.js +129 -0
- package/dist/sur-onlyoffice.css +1 -0
- package/index.html +23 -0
- package/package.json +13 -6
- package/plugin-server.js +70 -0
- package/src/components/DocumentEditor.vue +1 -1
- package/src/index.ts +14 -0
- package/src/package/onlyoffice.vue +1157 -0
- package/vite.config.js +28 -0
- package/.history/package_20251218095321.json +0 -12
- package/.history/package_20251218095342.json +0 -12
- package/.history/package_20251218100409.json +0 -12
- package/.history/package_20251218100517.json +0 -15
- package/.history/package_20251218100518.json +0 -15
- package/.history/package_20251218110158.json +0 -15
- package/.history/package_20251218110205.json +0 -15
- package/.history/package_20251218110608.json +0 -15
- package/.history/package_20251218110641.json +0 -15
- package/.history/package_20251218111117.json +0 -18
- package/.history/package_20251218111118.json +0 -18
- package/.history/package_20251218111201.json +0 -18
- package/.history/src/index_20251217165833.js +0 -20
- package/.history/src/index_20251218110935.js +0 -5
- package/.history/src/index_20251218111131.js +0 -10
- package/.history/src/index_20251218111147.js +0 -11
- package/.history/src/index_20251218111150.js +0 -11
- package/.history/src/index_20251218111151.js +0 -11
- package/.history/src/index_20251218111152.js +0 -11
- package/src/index.js +0 -11
package/vite.config.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
|
|
4
|
+
// https://vite.dev/config/
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [vue()],
|
|
7
|
+
build: {
|
|
8
|
+
lib: {
|
|
9
|
+
entry: "./src/index.ts",
|
|
10
|
+
name: "OnlyofficeUI",
|
|
11
|
+
fileName: (format) => `onlyoffice.${format}.js`,
|
|
12
|
+
},
|
|
13
|
+
rollupOptions: {
|
|
14
|
+
// Ensure external dependencies are not bundled into your library
|
|
15
|
+
external: ["vue"],
|
|
16
|
+
output: {
|
|
17
|
+
globals: {
|
|
18
|
+
vue: "Vue",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
server: {
|
|
24
|
+
host: '0.0.0.0', // 监听所有网络接口,包括局域网IP
|
|
25
|
+
port: 5174, // 确保端口号正确
|
|
26
|
+
cors: true // 启用CORS支持
|
|
27
|
+
}
|
|
28
|
+
})
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"module": "lib/index.esm.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"author": "",
|
|
14
|
-
"license": "ISC"
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"module": "lib/index.esm.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"author": "",
|
|
14
|
-
"license": "ISC"
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "index.ts",
|
|
6
|
-
"module": "lib/index.esm.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"author": "",
|
|
14
|
-
"license": "ISC"
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.1",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "index.ts",
|
|
6
|
-
"module": "lib/index.esm.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"author": "",
|
|
14
|
-
"license": "ISC"
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.1",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"author": "",
|
|
14
|
-
"license": "ISC"
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.2",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"author": "",
|
|
14
|
-
"license": "ISC"
|
|
15
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.2",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"lodash": "^4.17.21"
|
|
15
|
-
},
|
|
16
|
-
"author": "",
|
|
17
|
-
"license": "ISC"
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.2",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"lodash": "^4.17.21"
|
|
15
|
-
},
|
|
16
|
-
"author": "",
|
|
17
|
-
"license": "ISC"
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sur-onlyoffice",
|
|
3
|
-
"version": "1.0.3",
|
|
4
|
-
"description": "文档",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
-
},
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"vue": "^2.6.0 || ^3.0.0"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"lodash": "^4.17.21"
|
|
15
|
-
},
|
|
16
|
-
"author": "",
|
|
17
|
-
"license": "ISC"
|
|
18
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* (c) Copyright Ascensio System SIA 2025
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
18
|
-
|
|
19
|
-
export { SurDocumentEditor };
|
|
20
|
-
export * from "./model/config";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
-
|
|
4
|
-
// export { SurDocumentEditor };
|
|
5
|
-
export default SurDocumentEditor
|
|
6
|
-
|
|
7
|
-
export function install(Vue) {
|
|
8
|
-
Vue.component('SurCodeVideo', SurCodeVideo);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// export * from "./model/config";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
-
|
|
4
|
-
// export { SurDocumentEditor };
|
|
5
|
-
export default SurDocumentEditor
|
|
6
|
-
|
|
7
|
-
export function install(Vue) {
|
|
8
|
-
Vue.component('SurDocumentEditor', SurDocumentEditor);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// export * from "./model/config";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
-
|
|
4
|
-
// export { SurDocumentEditor };
|
|
5
|
-
export default SurDocumentEditor
|
|
6
|
-
|
|
7
|
-
export function install(Vue) {
|
|
8
|
-
Vue.component('SurDocumentEditor', SurDocumentEditor);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// export * from "./model/config";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
-
|
|
4
|
-
// export { SurDocumentEditor };
|
|
5
|
-
export default SurDocumentEditor
|
|
6
|
-
|
|
7
|
-
export function install(Vue) {
|
|
8
|
-
Vue.component('SurDocumentEditor', SurDocumentEditor);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// export * from "./model/config";
|
package/src/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import SurDocumentEditor from "./components/DocumentEditor.vue";
|
|
3
|
-
|
|
4
|
-
// export { SurDocumentEditor };
|
|
5
|
-
export default SurDocumentEditor
|
|
6
|
-
|
|
7
|
-
export function install(Vue) {
|
|
8
|
-
Vue.component('SurDocumentEditor', SurDocumentEditor);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// export * from "./model/config";
|