Web: init e2e tests

This commit is contained in:
Timofey Boyko 2021-12-21 15:59:11 +08:00
parent 656fa2df89
commit ff7b6fc432
614 changed files with 7966 additions and 728 deletions

71
build/e2e.test.bat Normal file
View File

@ -0,0 +1,71 @@
@echo off
PUSHD %~dp0
call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
PUSHD %~dp0..
echo "mode="
REM call yarn wipe
call yarn install
REM call yarn build
call yarn build:test
REM call yarn wipe
call yarn deploy
REM copy nginx configurations to deploy folder
xcopy config\nginx\onlyoffice.conf build\deploy\nginx\ /E /R /Y
powershell -Command "(gc build\deploy\nginx\onlyoffice.conf) -replace '#', '' | Out-File -encoding ASCII build\deploy\nginx\onlyoffice.conf"
xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y
REM fix paths
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Calendar\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-crm.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.CRM\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-crm.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-editor.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\editor' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-editor.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-files.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-files.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-login.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\login' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-login.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-mail.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Mail\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-mail.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-people.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.People\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-people.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-projects.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Projects\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-projects.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf"
REM restart nginx
echo service nginx stop
call sc stop nginx > nul
REM sleep 5 seconds
call ping 127.0.0.1 -n 6 > nul
echo service nginx start
call sc start nginx > nul
REM sleep 5 seconds
call ping 127.0.0.1 -n 6 > nul
choice /t 10 /d Y /m "Do you want to start tests in sequential mode?"
if errorlevel 2 call yarn e2e.test
if errorlevel 1 call yarn e2e.test:sequential
if NOT %errorlevel% == 0 (
echo Couldn't restarte Onlyoffice%%~nf service
)
)
echo.
POPD
if "%1"=="nopause" goto start
pause
:start

View File

@ -0,0 +1,71 @@
@echo off
PUSHD %~dp0
call runasadmin.bat "%~dpnx0"
if %errorlevel% == 0 (
PUSHD %~dp0..
echo "mode="
REM call yarn wipe
call yarn install
REM call yarn build
call yarn build:test.translation
REM call yarn wipe
call yarn deploy
REM copy nginx configurations to deploy folder
xcopy config\nginx\onlyoffice.conf build\deploy\nginx\ /E /R /Y
powershell -Command "(gc build\deploy\nginx\onlyoffice.conf) -replace '#', '' | Out-File -encoding ASCII build\deploy\nginx\onlyoffice.conf"
xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y
REM fix paths
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Calendar\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-crm.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.CRM\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-crm.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-editor.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\editor' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-editor.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-files.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-files.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-login.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\login' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-login.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-mail.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Mail\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-mail.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-people.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.People\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-people.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-projects.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Projects\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-projects.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf"
REM restart nginx
echo service nginx stop
call sc stop nginx > nul
REM sleep 5 seconds
call ping 127.0.0.1 -n 6 > nul
echo service nginx start
call sc start nginx > nul
REM sleep 5 seconds
call ping 127.0.0.1 -n 6 > nul
call yarn e2e.test:translation
exit
if NOT %errorlevel% == 0 (
echo Couldn't restarte Onlyoffice%%~nf service
)
)
echo.
POPD
if "%1"=="nopause" goto start
pause
:start

View File

@ -52,7 +52,8 @@
"settings": {
"window.zoomLevel": 0,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"liveServer.settings.multiRootWorkspaceName": "✨ appserver"
},
"extensions": {
"recommendations": ["folke.vscode-monorepo-workspace"]

View File

@ -19,6 +19,8 @@
"scripts": {
"build": "lerna run build --parallel --ignore @appserver/common --ignore @appserver/components --ignore @appserver/browserslist-config-asc",
"build:personal": "lerna run build --parallel --scope {@appserver/studio,@appserver/people,@appserver/files,@appserver/editor}",
"build:test": "lerna run build:test --parallel --ignore @appserver/common --ignore @appserver/components --ignore @appserver/browserslist-config-asc --ignore @appserver/debug-info",
"build:test.translation": "lerna run build:test.translation --parallel --ignore @appserver/common --ignore @appserver/components --ignore @appserver/browserslist-config-asc --ignore @appserver/debug-info",
"bump": "lerna version --no-push --no-git-tag-version",
"clean": "lerna run clean --parallel",
"deploy": "shx rm -rf build/deploy/products && shx rm -rf build/deploy/public && shx rm -rf build/deploy/studio && lerna run deploy --parallel --ignore @appserver/common --ignore @appserver/components --ignore @appserver/browserslist-config-asc && shx cp -r public build/deploy",
@ -46,7 +48,11 @@
"sw-studio-replace": "replace-in-files --string='studio/client/' --replacement='/' build/deploy/public/sw.js",
"test": "yarn workspace @appserver/components test",
"wipe": "shx rm -rf node_modules yarn.lock web/**/node_modules products/**/node_modules",
"debug-info": "auto-changelog --unreleased-only --template debuginfo --output public/debuginfo.md"
"debug-info": "auto-changelog --unreleased-only --template debuginfo --output public/debuginfo.md",
"e2e.test": "lerna run test:sequential --parallel --scope {@appserver/people,@appserver/files,@appserver/login}",
"e2e.test:sequential": "yarn workspace @appserver/people test:sequential && yarn workspace @appserver/files test:sequential && yarn workspace @appserver/login test:sequential",
"e2e.test:model": "yarn workspace @appserver/people test:model && yarn workspace @appserver/files test:model && yarn workspace @appserver/login test:model",
"e2e.test:translation": "lerna run test:translation --parallel --scope {@appserver/people,@appserver/files}"
},
"devDependencies": {
"auto-changelog": "https://github.com/ONLYOFFICE/auto-changelog.git#master",

View File

@ -5,6 +5,8 @@
"homepage": "/products/crm",
"scripts": {
"build": "webpack --mode production",
"build:test": "webpack --env minimize=false --mode production",
"build:test.translation": "webpack --env minimize=false hideText=true --mode production",
"clean": "shx rm -rf dist",
"deploy": "shx --silent mkdir -p ../../../build/deploy/products/ASC.CRM/client && shx cp -r dist/* ../../../build/deploy/products/ASC.CRM/client",
"serve": "serve dist -p 5014",

View File

@ -1,30 +1,29 @@
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ModuleFederationPlugin = require("webpack").container
.ModuleFederationPlugin;
const ExternalTemplateRemotesPlugin = require("external-remotes-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const combineUrl = require("@appserver/common/utils/combineUrl");
const AppServerConfig = require("@appserver/common/constants/AppServerConfig");
const sharedDeps = require("@appserver/common/constants/sharedDependencies");
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ModuleFederationPlugin = require('webpack').container.ModuleFederationPlugin;
const ExternalTemplateRemotesPlugin = require('external-remotes-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const combineUrl = require('@appserver/common/utils/combineUrl');
const AppServerConfig = require('@appserver/common/constants/AppServerConfig');
const sharedDeps = require('@appserver/common/constants/sharedDependencies');
const path = require("path");
const pkg = require("./package.json");
const path = require('path');
const pkg = require('./package.json');
const deps = pkg.dependencies || {};
const homepage = pkg.homepage; // combineUrl(AppServerConfig.proxyURL, pkg.homepage);
const title = pkg.title;
var config = {
mode: "development",
entry: "./src/index",
mode: 'development',
entry: './src/index',
devServer: {
devMiddleware: {
publicPath: homepage,
},
static: {
directory: path.join(__dirname, "dist"),
directory: path.join(__dirname, 'dist'),
publicPath: homepage,
},
@ -37,23 +36,22 @@ var config = {
},
hot: false,
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
"Access-Control-Allow-Headers":
"X-Requested-With, content-type, Authorization",
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization',
},
},
output: {
publicPath: "auto",
chunkFilename: "static/js/[id].[contenthash].js",
publicPath: 'auto',
chunkFilename: 'static/js/[id].[contenthash].js',
//assetModuleFilename: "static/images/[hash][ext][query]",
path: path.resolve(process.cwd(), "dist"),
filename: "static/js/[name].[contenthash].bundle.js",
path: path.resolve(process.cwd(), 'dist'),
filename: 'static/js/[name].[contenthash].bundle.js',
},
resolve: {
extensions: [".jsx", ".js", ".json"],
extensions: ['.jsx', '.js', '.json'],
fallback: {
crypto: false,
},
@ -68,14 +66,14 @@ var config = {
rules: [
{
test: /\.(png|jpe?g|gif|ico)$/i,
type: "asset/resource",
type: 'asset/resource',
generator: {
filename: "static/images/[hash][ext][query]",
filename: 'static/images/[hash][ext][query]',
},
},
{
test: /\.m?js/,
type: "javascript/auto",
type: 'javascript/auto',
resolve: {
fullySpecified: false,
},
@ -84,7 +82,7 @@ var config = {
test: /\.react.svg$/,
use: [
{
loader: "@svgr/webpack",
loader: '@svgr/webpack',
options: {
svgoConfig: {
plugins: [{ removeViewBox: false }],
@ -93,26 +91,26 @@ var config = {
},
],
},
{ test: /\.json$/, loader: "json-loader" },
{ test: /\.json$/, loader: 'json-loader' },
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
use: ['style-loader', 'css-loader'],
},
{
test: /\.s[ac]ss$/i,
use: [
// Creates `style` nodes from JS strings
"style-loader",
'style-loader',
// Translates CSS into CommonJS
{
loader: "css-loader",
loader: 'css-loader',
options: {
url: {
filter: (url, resourcePath) => {
// resourcePath - path to css file
// Don't handle `/static` urls
if (url.startsWith("/static") || url.startsWith("data:")) {
if (url.startsWith('/static') || url.startsWith('data:')) {
return false;
}
@ -122,7 +120,7 @@ var config = {
},
},
// Compiles Sass to CSS
"sass-loader",
'sass-loader',
],
},
@ -131,17 +129,17 @@ var config = {
exclude: /node_modules/,
use: [
{
loader: "babel-loader",
loader: 'babel-loader',
options: {
presets: ["@babel/preset-react", "@babel/preset-env"],
presets: ['@babel/preset-react', '@babel/preset-env'],
plugins: [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from",
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-default-from',
],
},
},
"source-map-loader",
'source-map-loader',
],
},
],
@ -150,16 +148,13 @@ var config = {
plugins: [
new CleanWebpackPlugin(),
new ModuleFederationPlugin({
name: "crm",
filename: "remoteEntry.js",
name: 'crm',
filename: 'remoteEntry.js',
remotes: {
studio: `studio@${combineUrl(
AppServerConfig.proxyURL,
"/remoteEntry.js"
)}`,
studio: `studio@${combineUrl(AppServerConfig.proxyURL, '/remoteEntry.js')}`,
},
exposes: {
"./app": "./src/Crm.jsx",
'./app': './src/Crm.jsx',
},
shared: {
...deps,
@ -168,7 +163,7 @@ var config = {
}),
new ExternalTemplateRemotesPlugin(),
new HtmlWebpackPlugin({
template: "./public/index.html",
template: './public/index.html',
publicPath: homepage,
title: title,
base: `${homepage}/`,
@ -176,11 +171,11 @@ var config = {
new CopyPlugin({
patterns: [
{
from: "public",
from: 'public',
globOptions: {
dot: true,
gitignore: true,
ignore: ["**/index.html"],
ignore: ['**/index.html'],
},
},
],
@ -189,15 +184,15 @@ var config = {
};
module.exports = (env, argv) => {
if (argv.mode === "production") {
config.mode = "production";
if (argv.mode === 'production') {
config.mode = 'production';
config.optimization = {
splitChunks: { chunks: "all" },
minimize: true,
splitChunks: { chunks: 'all' },
minimize: !env.minimize,
minimizer: [new TerserPlugin()],
};
} else {
config.devtool = "cheap-module-source-map";
config.devtool = 'cheap-module-source-map';
}
return config;

View File

@ -5,6 +5,8 @@
"homepage": "/products/calendar",
"scripts": {
"build": "webpack --mode production",
"build:test": "webpack --env minimize=false --mode production",
"build:test.translation": "webpack --env minimize=false hideText=true --mode production",
"clean": "shx rm -rf dist",
"deploy": "shx --silent mkdir -p ../../../build/deploy/products/ASC.Calendar/client && shx cp -r dist/* ../../../build/deploy/products/ASC.Calendar/client",
"serve": "serve dist -p 5017",

View File

@ -1,30 +1,29 @@
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ModuleFederationPlugin = require("webpack").container
.ModuleFederationPlugin;
const ExternalTemplateRemotesPlugin = require("external-remotes-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const combineUrl = require("@appserver/common/utils/combineUrl");
const AppServerConfig = require("@appserver/common/constants/AppServerConfig");
const sharedDeps = require("@appserver/common/constants/sharedDependencies");
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ModuleFederationPlugin = require('webpack').container.ModuleFederationPlugin;
const ExternalTemplateRemotesPlugin = require('external-remotes-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const combineUrl = require('@appserver/common/utils/combineUrl');
const AppServerConfig = require('@appserver/common/constants/AppServerConfig');
const sharedDeps = require('@appserver/common/constants/sharedDependencies');
const path = require("path");
const pkg = require("./package.json");
const path = require('path');
const pkg = require('./package.json');
const deps = pkg.dependencies || {};
const homepage = pkg.homepage; // combineUrl(AppServerConfig.proxyURL, pkg.homepage);
const title = pkg.title;
var config = {
mode: "development",
entry: "./src/index",
mode: 'development',
entry: './src/index',
devServer: {
devMiddleware: {
publicPath: homepage,
},
static: {
directory: path.join(__dirname, "dist"),
directory: path.join(__dirname, 'dist'),
publicPath: homepage,
},
port: 5017,
@ -36,23 +35,22 @@ var config = {
},
hot: false,
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
"Access-Control-Allow-Headers":
"X-Requested-With, content-type, Authorization",
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization',
},
},
output: {
publicPath: "auto",
chunkFilename: "static/js/[id].[contenthash].js",
publicPath: 'auto',
chunkFilename: 'static/js/[id].[contenthash].js',
//assetModuleFilename: "static/images/[hash][ext][query]",
path: path.resolve(process.cwd(), "dist"),
filename: "static/js/[name].[contenthash].bundle.js",
path: path.resolve(process.cwd(), 'dist'),
filename: 'static/js/[name].[contenthash].bundle.js',
},
resolve: {
extensions: [".jsx", ".js", ".json"],
extensions: ['.jsx', '.js', '.json'],
fallback: {
crypto: false,
},
@ -67,14 +65,14 @@ var config = {
rules: [
{
test: /\.(png|jpe?g|gif|ico)$/i,
type: "asset/resource",
type: 'asset/resource',
generator: {
filename: "static/images/[hash][ext][query]",
filename: 'static/images/[hash][ext][query]',
},
},
{
test: /\.m?js/,
type: "javascript/auto",
type: 'javascript/auto',
resolve: {
fullySpecified: false,
},
@ -83,7 +81,7 @@ var config = {
test: /\.react.svg$/,
use: [
{
loader: "@svgr/webpack",
loader: '@svgr/webpack',
options: {
svgoConfig: {
plugins: [{ removeViewBox: false }],
@ -92,26 +90,26 @@ var config = {
},
],
},
{ test: /\.json$/, loader: "json-loader" },
{ test: /\.json$/, loader: 'json-loader' },
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
use: ['style-loader', 'css-loader'],
},
{
test: /\.s[ac]ss$/i,
use: [
// Creates `style` nodes from JS strings
"style-loader",
'style-loader',
// Translates CSS into CommonJS
{
loader: "css-loader",
loader: 'css-loader',
options: {
url: {
filter: (url, resourcePath) => {
// resourcePath - path to css file
// Don't handle `/static` urls
if (url.startsWith("/static") || url.startsWith("data:")) {
if (url.startsWith('/static') || url.startsWith('data:')) {
return false;
}
@ -121,7 +119,7 @@ var config = {
},
},
// Compiles Sass to CSS
"sass-loader",
'sass-loader',
],
},
@ -130,17 +128,17 @@ var config = {
exclude: /node_modules/,
use: [
{
loader: "babel-loader",
loader: 'babel-loader',
options: {
presets: ["@babel/preset-react", "@babel/preset-env"],
presets: ['@babel/preset-react', '@babel/preset-env'],
plugins: [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-default-from",
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-default-from',
],
},
},
"source-map-loader",
'source-map-loader',
],
},
],
@ -149,16 +147,13 @@ var config = {
plugins: [
new CleanWebpackPlugin(),
new ModuleFederationPlugin({
name: "calendar",
filename: "remoteEntry.js",
name: 'calendar',
filename: 'remoteEntry.js',
remotes: {
studio: `studio@${combineUrl(
AppServerConfig.proxyURL,
"/remoteEntry.js"
)}`,
studio: `studio@${combineUrl(AppServerConfig.proxyURL, '/remoteEntry.js')}`,
},
exposes: {
"./app": "./src/Calendar.jsx",
'./app': './src/Calendar.jsx',
},
shared: {
...deps,
@ -167,7 +162,7 @@ var config = {
}),
new ExternalTemplateRemotesPlugin(),
new HtmlWebpackPlugin({
template: "./public/index.html",
template: './public/index.html',
publicPath: homepage,
title: title,
base: `${homepage}/`,
@ -175,11 +170,11 @@ var config = {
new CopyPlugin({
patterns: [
{
from: "public",
from: 'public',
globOptions: {
dot: true,
gitignore: true,
ignore: ["**/index.html"],
ignore: ['**/index.html'],
},
},
],
@ -188,15 +183,15 @@ var config = {
};
module.exports = (env, argv) => {
if (argv.mode === "production") {
config.mode = "production";
if (argv.mode === 'production') {
config.mode = 'production';
config.optimization = {
splitChunks: { chunks: "all" },
minimize: true,
splitChunks: { chunks: 'all' },
minimize: !env.minimize,
minimizer: [new TerserPlugin()],
};
} else {
config.devtool = "cheap-module-source-map";
config.devtool = 'cheap-module-source-map';
}
return config;

View File

@ -5,6 +5,8 @@
# testing
/coverage
/tests/output
/tests/reports
# production
/build

View File

@ -0,0 +1,121 @@
const fs = require('fs');
const { setHeadlessWhen, setWindowSize } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);
const sizes = {
mobile: { width: 375, height: 667 },
smallTablet: { width: 600, height: 667 },
tablet: { width: 1023, height: 667 },
desktop: { width: 1920, height: 1080 },
};
const deviceType = process.env.DEVICE_TYPE || 'desktop';
const isTranslation = !!process.env.TRANSLATION;
const device = sizes[deviceType];
setWindowSize(device.width, device.height);
const browser = process.env.profile || 'chromium';
const isModel = !!process.env.MODEL;
const screenshotOutput = isTranslation
? isModel
? `./tests/screenshots/translation/${browser}/${deviceType}`
: `./tests/output/translation/${browser}/${deviceType}`
: isModel
? `./tests/screenshots/${browser}/${deviceType}`
: `./tests/output/${browser}/${deviceType}`;
const baseFolder = isTranslation
? `./tests/screenshots/translation/${browser}/${deviceType}`
: `./tests/screenshots/${browser}/${deviceType}`;
const tests = isTranslation
? './tests/translation_tests.js'
: ['./tests/action_tests.js', './tests/render_tests.js'];
const reportDir = isTranslation
? `../../../TestsResults/files`
: `./tests/reports/${browser}/${deviceType}`;
const reportFileName = isTranslation ? 'file-translation' : 'report';
const diffFolder = isTranslation ? '../../../TestsResults/files/diff' : './tests/output/diff/';
if (isTranslation) {
fs.rmdir(diffFolder, { recursive: true }, (err) => {
if (err) throw err;
});
fs.mkdir(diffFolder, { recursive: true }, (err) => {
if (err) throw err;
});
}
exports.config = {
tests: tests,
output: screenshotOutput,
helpers: {
Playwright: {
url: 'http://localhost:8092',
// show browser window
show: false,
browser: browser,
// restart browser between tests
restart: true,
waitForNavigation: 'networkidle0',
// don't save screenshot on failure
disableScreenshots: false,
},
ResembleHelper: {
require: 'codeceptjs-resemblehelper',
screenshotFolder: './tests/output/',
baseFolder: baseFolder,
diffFolder: diffFolder,
},
PlaywrightHelper: {
require: './tests/helpers/playwright.helper.js',
},
},
include: {
I: './steps_file.js',
},
bootstrap: null,
mocha: {
reporterOptions: {
mochawesome: {
stdout: '-',
options: {
reportDir: reportDir,
reportFilename: reportFileName,
},
},
'mocha-junit-reporter': {
stdout: '-',
options: {
mochaFile: `${reportDir}/${reportFileName}.xml`,
attachments: false, //add screenshot for a failed test
},
},
},
},
name: 'ASC.Web.Files',
plugins: {
pauseOnFail: {},
retryFailedStep: {
enabled: true,
},
tryTo: {
enabled: true,
},
screenshotOnFail: {
enabled: true,
},
},
};

View File

@ -0,0 +1,5 @@
{
"compilerOptions": {
"allowJs": true
}
}

View File

@ -5,11 +5,36 @@
"homepage": "/products/files",
"scripts": {
"build": "webpack --mode production",
"build:test": "webpack --env minimize=false --mode production",
"build:test.translation": "webpack --env minimize=false hideText=true --mode production",
"clean": "shx rm -rf dist",
"deploy": "shx --silent mkdir -p ../../../build/deploy/products/ASC.Files/client && shx cp -r dist/* ../../../build/deploy/products/ASC.Files/client",
"serve": "serve dist -p 5008",
"start": "webpack-cli serve",
"start-prod": "webpack --mode production && serve dist -p 5008"
"start-prod": "webpack --mode production && serve dist -p 5008",
"test:codeceptjs": "npx codeceptjs run --reporter mocha-multi",
"test:mobile": "cross-env DEVICE_TYPE=mobile yarn test:codeceptjs",
"test:smallTablet": "cross-env DEVICE_TYPE=smallTablet yarn test:codeceptjs",
"test:tablet": "cross-env DEVICE_TYPE=tablet yarn test:codeceptjs",
"test:desktop": "cross-env DEVICE_TYPE=desktop yarn test:codeceptjs ",
"test:translation": "cross-env DEVICE_TYPE=desktop translation=true yarn test:codeceptjs --profile chromium",
"test:mobile:model": "cross-env DEVICE_TYPE=mobile MODEL=true yarn test:codeceptjs",
"test:smallTablet:model": "cross-env DEVICE_TYPE=smallTablet MODEL=true yarn test:codeceptjs",
"test:tablet:model": "cross-env DEVICE_TYPE=tablet MODEL=true yarn test:codeceptjs",
"test:desktop:model": "cross-env DEVICE_TYPE=desktop MODEL=true yarn test:codeceptjs",
"test:translation:model": "cross-env DEVICE_TYPE=desktop MODEL=true TRANSLATION=true yarn test:codeceptjs --profile chromium",
"test:chromium:parallel": "run-p -c \"test:mobile --profile chromium \" \"test:smallTablet --profile chromium \" \"test:tablet --profile chromium \" \"test:desktop --profile chromium \" && yarn test:parse-xml",
"test:chromium:sequential": "run-s -c \"test:mobile --profile chromium \" \"test:smallTablet --profile chromium \" \"test:tablet --profile chromium \" \"test:desktop --profile chromium \" && yarn test:parse-xml",
"test:chromium:model": "run-s -c \"test:mobile:model --profile chromium \" \"test:smallTablet:model --profile chromium \" \"test:tablet:model --profile chromium \" \"test:desktop:model --profile chromium \" && yarn test:parse-xml",
"test:firefox:parallel": "run-p -c \"test:mobile --profile firefox \" \"test:smallTablet --profile firefox \" \"test:tablet --profile firefox \" \"test:desktop --profile firefox \" && yarn test:parse-xml",
"test:firefox:sequential": "run-s -c \"test:mobile --profile firefox \" \"test:smallTablet --profile firefox \" \"test:tablet --profile firefox \" \"test:desktop --profile firefox \" && yarn test:parse-xml",
"test:firefox:model": "run-s -c \"test:mobile:model --profile firefox \" \"test:smallTablet:model --profile firefox \" \"test:tablet:model --profile firefox \" \"test:desktop:model --profile firefox \" && yarn test:parse-xml",
"test:webkit:parallel": "run-p -c \"test:mobile --profile webkit \" \"test:smallTablet --profile webkit \" \"test:tablet --profile webkit \" \"test:desktop --profile webkit \" && yarn test:parse-xml",
"test:webkit:sequential": "run-s -c \"test:mobile --profile webkit \" \"test:smallTablet --profile webkit \" \"test:tablet --profile webkit \" \"test:desktop --profile webkit \" && yarn test:parse-xml",
"test:webkit:model": "run-s -c \"test:mobile:model --profile webkit \" \"test:smallTablet:model --profile webkit \" \"test:tablet:model --profile webkit \" \"test:desktop:model --profile webkit \" && yarn test:parse-xml",
"test:sequential": "run-s -c test:chromium:sequential test:firefox:sequential test:webkit:sequential && yarn test:parse-xml",
"test:model": "run-s -c test:chromium:model test:firefox:model test:webkit:model && yarn test:parse-xml",
"test:parse-xml": "node tests/helpers/parserXML.js"
},
"dependencies": {
"copy-to-clipboard": "^3.3.1",
@ -22,15 +47,26 @@
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.6",
"@babel/preset-react": "^7.14.5",
"@codeceptjs/configure": "^0.7.0",
"@codeceptjs/examples": "^1.2.1",
"@codeceptjs/ui": "^0.4.6",
"@svgr/webpack": "^5.5.0",
"babel-loader": "^8.2.2",
"clean-webpack-plugin": "^4.0.0",
"codeceptjs": "^3.2.2",
"codeceptjs-resemblehelper": "^1.9.5",
"copy-webpack-plugin": "^9.0.1",
"css-loader": "^6.2.0",
"external-remotes-plugin": "^1.0.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "5.3.2",
"json-loader": "^0.5.7",
"mocha": "^9.1.3",
"mocha-junit-reporter": "^2.0.2",
"mocha-multi": "^1.1.5",
"mochawesome": "^7.0.1",
"npm-run-all": "^4.1.5",
"playwright": "^1.17.1",
"sass": "^1.39.2",
"sass-loader": "^12.1.0",
"serve": "12.0.1",

View File

@ -29,13 +29,16 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<%= htmlWebpackPlugin.options.custom %>
<style type="text/css">
body {
height: 100%;
margin: 0;
padding: 0;
width: 100%;
font-family: "Open Sans", sans-serif;
font-family: 'Open Sans', sans-serif;
font-size: 13px;
-webkit-font-smoothing: antialiased;
}
@ -111,20 +114,10 @@
aria-labelledby="loading-aria01"
preserveAspectRatio="none"
>
<rect
rx="3"
ry="3"
width="208"
height="24"
style="fill: url('#fill01')"
></rect>
<rect rx="3" ry="3" width="208" height="24" style="fill: url('#fill01')"></rect>
<defs>
<linearGradient id="fill01">
<stop
offset="0.599964"
stop-color="#fff"
stop-opacity="0.25"
></stop>
<stop offset="0.599964" stop-color="#fff" stop-opacity="0.25"></stop>
</linearGradient>
</defs>
</svg>
@ -148,11 +141,7 @@
></circle>
<defs>
<linearGradient id="fill02">
<stop
offset="0.599964"
stop-color="#fff"
stop-opacity="0.25"
></stop>
<stop offset="0.599964" stop-color="#fff" stop-opacity="0.25"></stop>
</linearGradient>
</defs>
</svg>
@ -181,11 +170,7 @@
<rect x="3" y="3" rx="5" ry="5" width="100%" />
</clipPath>
<linearGradient id="fill1">
<stop
offset="0.599964"
stop-color="#000000"
stop-opacity="0.1"
></stop>
<stop offset="0.599964" stop-color="#000000" stop-opacity="0.1"></stop>
</linearGradient>
</defs>
</svg>
@ -211,11 +196,7 @@
<rect x="3" y="3" rx="5" ry="5" width="100%" />
</clipPath>
<linearGradient id="fill2">
<stop
offset="0.599964"
stop-color="#000000"
stop-opacity="0.1"
></stop>
<stop offset="0.599964" stop-color="#000000" stop-opacity="0.1"></stop>
</linearGradient>
</defs>
</svg>

11
products/ASC.Files/Client/steps.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
/// <reference types='codeceptjs' />
type steps_file = typeof import('./steps_file.js');
declare namespace CodeceptJS {
interface SupportObject { I: I, current: any }
interface Methods extends Playwright {}
interface I extends ReturnType<steps_file> {}
namespace Translation {
interface Actions {}
}
}

View File

@ -0,0 +1,44 @@
const Endpoints = require('./tests/mocking/endpoints.js');
// in this file you can append custom step methods to 'I' object
module.exports = function () {
return actor({
// Define custom steps here, use 'this' to access default methods of I.
// It is recommended to place a general 'login' function here.
mockData: function () {
this.mockEndpoint(Endpoints.self, 'self');
this.mockEndpoint(Endpoints.settings, 'settings');
this.mockEndpoint(Endpoints.build, 'build');
this.mockEndpoint(Endpoints.info, 'info');
this.mockEndpoint(Endpoints.common, 'common');
this.mockEndpoint(Endpoints.cultures, 'cultures');
this.mockEndpoint(Endpoints.fileSettings, 'default');
this.mockEndpoint(Endpoints.capabilities, 'capabilities');
this.mockEndpoint(Endpoints.thirdparty, 'thirdparty');
this.mockEndpoint(Endpoints.thumbnails, 'thumbnails');
},
openArticle: function () {
this.seeElement({
react: 'styled.div',
props: { className: 'not-selectable', visible: true },
});
this.click({ react: 'styled.div', props: { className: 'not-selectable', visible: true } });
},
openProfileMenu: function () {
this.seeElement({ react: 'Avatar', props: { className: 'icon-profile-menu' } });
this.click({ react: 'Avatar', props: { className: 'icon-profile-menu' } });
},
openContextMenu: function () {
this.seeElement({ react: 'ContextMenuButton', props: { className: 'expandButton' } });
this.click({ react: 'ContextMenuButton', props: { className: 'expandButton' } });
},
switchView: function (type) {
this.click({ react: 'styled.div', key: type, props: { isChecked: false } });
this.wait(2);
},
});
};

View File

@ -0,0 +1,66 @@
const Endpoints = require('./mocking/endpoints.js');
const browser = process.env.profile || 'chromium';
const deviceType = process.env.DEVICE_TYPE || 'desktop';
const isModel = !!process.env.MODEL;
const featureName = isModel
? `Files actions on '${browser}' with '${deviceType}' dimension (model)`
: `Files actions on '${browser}' with '${deviceType}' dimension`;
const renamedFolderTitle = 'Renamed folder';
Feature(featureName);
Before(async ({ I }) => {
I.mockData();
});
Scenario('Rename file test', ({ I }) => {
I.mockEndpoint(Endpoints.root, 'one');
I.mockEndpoint(Endpoints.my, 'many');
I.mockEndpoint(Endpoints.getFolder(9), '9');
I.mockEndpoint(Endpoints.getSubfolder(9), '9');
I.checkRequest(
`http://localhost:8092/api/2.0/files/folder/16`,
{ title: renamedFolderTitle },
'files/folder',
'16',
);
I.amOnPage('/products/files');
I.wait(5);
I.click('New folder');
I.see('New folder');
I.openContextMenu();
I.see('Rename');
I.click('Rename');
I.type(renamedFolderTitle);
I.pressKey('Enter');
I.see('Done');
});
Scenario('Add and remove from favorites file test', ({ I }) => {
I.mockEndpoint(Endpoints.root, 'empty');
I.mockEndpoint(Endpoints.my, 'default');
I.mockEndpoint(Endpoints.getFile(5), 'addFavorite');
I.checkRequest(
`http://localhost:8092/api/2.0/files/favorites`,
{ id: '5' },
'files/favorites',
'default',
);
I.amOnPage('/products/files');
I.wait(5);
I.openContextMenu();
I.see('Mark as favorite');
I.click('Mark as favorite');
I.mockEndpoint(Endpoints.getFile(5), 'removeFavorite');
I.openContextMenu();
I.see('Remove from favorites');
I.click('Remove from favorites');
});

View File

@ -0,0 +1,35 @@
const fs = require('fs');
const path = require('path');
const settingsFile = require(path.resolve(
__dirname,
'../mocking/mock-data/settings/settingsTranslation.json',
));
const selfFile = require(path.resolve(
__dirname,
'../mocking/mock-data/people/selfTranslation.json',
));
function changeCulture(culture) {
settingsFile.response.culture = culture;
selfFile.response.cultureName = culture;
fs.writeFile(
path.resolve(__dirname, '../mocking/mock-data/settings/settingsTranslation.json'),
JSON.stringify(settingsFile, null, 2),
function writeJSON(err) {
if (err) return console.log(err);
},
);
fs.writeFile(
path.resolve(__dirname, '../mocking/mock-data/people/selfTranslation.json'),
JSON.stringify(selfFile, null, 2),
function writeJSON(err) {
if (err) return console.log(err);
},
);
}
module.exports = changeCulture;

View File

@ -0,0 +1,65 @@
let fs = require('fs');
let path = require('path');
const deviceType = ['mobile', 'smallTablet', 'tablet', 'desktop'];
const browser = ['chromium', 'firefox', 'webkit'];
function parse() {
const currentStrings = [];
const final = [];
for (let i = 0; i < browser.length; i++) {
for (let j = 0; j < deviceType.length; j++) {
const filePath = path.join(__dirname, `../reports/${browser[i]}/${deviceType[j]}/report.xml`);
let currentString = '';
const testName = `${browser[i]} ${deviceType[j]}`;
const fn = new Promise((resolve) => {
fs.stat(filePath, (err) => {
if (err) {
resolve();
} else {
fs.readFile(filePath, 'utf-8', (err, data) => {
currentString = data.match(/<testsuites .*>\n(.*\n)*<\/testsuites>/g);
currentString = currentString.toString().replace('Mocha Tests', testName);
currentStrings.splice(i * 4 + j, 0, currentString);
resolve();
});
}
});
});
final.push(fn);
}
}
Promise.all(final).then(() => {
let tests = 0;
let failures = 0;
let time = 0;
let xmlString = '';
currentStrings.forEach((currentString) => {
const currentTestData = currentString.match(/<testsuites .*>\n/g)[0].match(/"\d*.?\d*"/g);
const currentTestDataNumber = currentTestData.map((testData) =>
testData.replace(/[^0-9,.]/g, ''),
);
time += Math.round(Number(currentTestDataNumber[0]) * 100) / 100;
tests += Number(currentTestDataNumber[1]);
failures += Number(currentTestDataNumber[2]);
xmlString += currentString + '\n';
});
const moduleInfo = `<moduleinfo name="Files" time="${time}" tests="${tests}" failures="${failures}">\n</moduleinfo>\n`;
const xmlData = `<?xml version="1.0" encoding="UTF-8"?>\n`;
xmlString = xmlData + moduleInfo + xmlString;
const filePath = path.join(__dirname, `../reports/report.xml`);
fs.writeFile(filePath, xmlString, 'utf-8', (err) => {
if (err) throw err;
console.log('Data has been replaced!');
});
});
}
parse();

View File

@ -0,0 +1,56 @@
const Helper = require('@codeceptjs/helper');
const path = require('path');
const assert = require('assert');
class PlaywrightHelper extends Helper {
// before/after hooks
/**
* @protected
*/
_before() {
const { page } = this.helpers.Playwright;
// clear all routes between tests
page._routes = [];
}
// add custom methods here
// If you need to access other helpers
// use: this.helpers['helperName']
async mockEndpoint(endpoint, scenario) {
const { page } = this.helpers.Playwright;
const rootDir = 'tests/mocking/mock-data/';
endpoint.url.forEach(async (url, index) => {
await page.route(new RegExp(url), (route) =>
route.fulfill({
path: path.resolve(rootDir, endpoint.baseDir, `${scenario}.json`),
headers: {
'content-type': 'application/json',
'access-control-allow-origin': '*',
},
}),
);
});
}
async checkRequest(url, form, baseDir, scenario) {
const { page } = this.helpers.Playwright;
const rootDir = 'tests/mocking/mock-data/';
await page.route(new RegExp(url), (route) => {
for (let key in form) {
assert(route.request().postData().includes(form[key]));
}
return route.fulfill({
path: path.resolve(rootDir, baseDir, `${scenario}.json`),
headers: {
'content-type': 'application/json',
'access-control-allow-origin': '*',
},
});
});
}
}
module.exports = PlaywrightHelper;

View File

@ -0,0 +1,91 @@
module.exports = class Endpoints {
static self = {
url: [
'http://localhost:8092/api/2.0/people/@self.json',
'http://localhost:8092/api/2.0/people/%40self.json',
],
method: 'GET',
baseDir: 'people',
};
static info = {
url: ['http://localhost:8092/api/2.0/modules/info'],
method: 'GET',
baseDir: 'modules',
};
static build = {
url: ['http://localhost:8092/api/2.0/settings/version/build.json'],
method: 'GET',
baseDir: 'settings',
};
static settings = {
url: ['http://localhost:8092/api/2.0/settings.json'],
method: 'GET',
baseDir: 'settings',
};
static common = {
url: ['http://localhost:8092/api/2.0/settings/customschemas/Common.json'],
method: 'GET',
baseDir: 'settings',
};
static cultures = {
url: ['http://localhost:8092/api/2.0/settings/cultures.json'],
method: 'GET',
baseDir: 'settings',
};
static root = {
url: [
'http://localhost:8092/api/2.0/files/@root',
'http://localhost:8092/api/2.0/files/%40root',
],
method: 'GET',
baseDir: 'files/root',
};
static fileSettings = {
url: ['http://localhost:8092/api/2.0/files/settings'],
method: 'GET',
baseDir: 'files/settings',
};
static my = {
url: ['http://localhost:8092/api/2.0/files/@my', 'http://localhost:8092/api/2.0/files/%40my'],
method: 'GET',
baseDir: 'files/my',
};
static capabilities = {
url: ['http://localhost:8092/api/2.0/files/thirdparty/capabilities'],
method: 'GET',
baseDir: 'files/settings',
};
static thirdparty = {
url: ['http://localhost:8092/api/2.0/files/thirdparty'],
method: 'GET',
baseDir: 'files/settings',
};
static thumbnails = {
url: ['http://localhost:8092/api/2.0/files/thumbnails'],
method: 'POST',
baseDir: 'files/settings',
};
static getFolder = (folderId) => {
return {
url: [`http://localhost:8092/api/2.0/files/${folderId}`],
method: 'GET',
baseDir: 'files/folder',
};
};
static getSubfolder = (folderId) => {
return {
url: [`http://localhost:8092/api/2.0/files/${folderId}/subfolders`],
method: 'GET',
baseDir: 'files/subfolder',
};
};
static getFile = (fileId) => {
return {
url: [`http://localhost:8092/api/2.0/files/file/${fileId}`],
method: 'GET',
baseDir: 'files/file',
};
};
};

View File

@ -0,0 +1 @@
{ "count": 1, "response": true, "status": 0, "statusCode": 200 }

View File

@ -0,0 +1,41 @@
{
"count": 1,
"response": {
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "58.05 MB",
"pureContentLength": 60864650,
"fileStatus": 32,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=5",
"webUrl": "http://localhost:8092/products/files/#preview/5",
"fileType": 2,
"fileExst": ".mp4",
"comment": "Создано",
"thumbnailStatus": 0,
"id": 5,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Video.mp4",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:23.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:23.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,41 @@
{
"count": 1,
"response": {
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "58.05 MB",
"pureContentLength": 60864650,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=5",
"webUrl": "http://localhost:8092/products/files/#preview/5",
"fileType": 2,
"fileExst": ".mp4",
"comment": "Создано",
"thumbnailStatus": 0,
"id": 5,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Video.mp4",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:23.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:23.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,33 @@
{
"count": 1,
"response": {
"parentId": 9,
"filesCount": 0,
"foldersCount": 0,
"new": 0,
"id": 16,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "Renamed file",
"access": 0,
"shared": false,
"created": "2021-10-06T12:26:04.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T13:26:28.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,463 @@
{
"count": 1,
"response": {
"files": [
{
"folderId": 9,
"version": 1,
"versionGroup": 1,
"contentLength": "6.83 KB",
"pureContentLength": 6994,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=45",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=45&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=45&version=1",
"thumbnailStatus": 1,
"id": 45,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "test docx.docx",
"access": 0,
"shared": false,
"created": "2021-11-23T12:48:25.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T12:48:25.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 9,
"version": 1,
"versionGroup": 1,
"contentLength": "6.25 KB",
"pureContentLength": 6396,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=44",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=44&version=1",
"fileType": 5,
"fileExst": ".xlsx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=44&version=1",
"thumbnailStatus": 1,
"id": 44,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "test 123.xlsx",
"access": 0,
"shared": false,
"created": "2021-11-23T12:48:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T12:48:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 9,
"version": 1,
"versionGroup": 1,
"contentLength": "31.96 KB",
"pureContentLength": 32731,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=43",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=43&version=1",
"fileType": 6,
"fileExst": ".pptx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=43&version=1",
"thumbnailStatus": 1,
"id": 43,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "test pres.pptx",
"access": 0,
"shared": false,
"created": "2021-11-23T12:48:04.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T12:48:04.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 9,
"version": 1,
"versionGroup": 1,
"contentLength": "6.25 KB",
"pureContentLength": 6396,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=42",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=42&version=1",
"fileType": 5,
"fileExst": ".xlsx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=42&version=1",
"thumbnailStatus": 1,
"id": 42,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "test.xlsx",
"access": 0,
"shared": false,
"created": "2021-11-23T12:47:58.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T12:47:58.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 9,
"version": 1,
"versionGroup": 1,
"contentLength": "6.83 KB",
"pureContentLength": 6994,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=41",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=41&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=41&version=1",
"thumbnailStatus": 1,
"id": 41,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New document.docx",
"access": 0,
"shared": false,
"created": "2021-11-23T12:47:51.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T12:47:51.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 9,
"version": 1,
"versionGroup": 1,
"contentLength": "6.83 KB",
"pureContentLength": 6994,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=40",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=40&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=40&version=1",
"thumbnailStatus": 1,
"id": 40,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "1234.docx",
"access": 0,
"shared": false,
"created": "2021-11-23T12:47:31.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T12:47:31.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"folders": [
{
"parentId": 9,
"filesCount": 0,
"foldersCount": 6,
"new": 0,
"id": 16,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder 16",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"parentId": 9,
"filesCount": 0,
"foldersCount": 6,
"new": 0,
"id": 15,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder 15",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"parentId": 9,
"filesCount": 0,
"foldersCount": 6,
"new": 0,
"id": 14,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder 14",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"parentId": 9,
"filesCount": 0,
"foldersCount": 0,
"new": 0,
"id": 13,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder 13",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"parentId": 9,
"filesCount": 0,
"foldersCount": 6,
"new": 0,
"id": 12,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder 12",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"parentId": 9,
"filesCount": 0,
"foldersCount": 6,
"new": 0,
"id": 11,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder 11",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"parentId": 9,
"filesCount": 0,
"foldersCount": 6,
"new": 0,
"id": 10,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder 10",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"current": {
"parentId": 2,
"filesCount": 6,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 9,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T12:48:25.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [2, 9],
"startIndex": 0,
"count": 7,
"total": 7,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,43 @@
{
"count": 1,
"response": {
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 8,
"foldersCount": 1,
"isShareable": true,
"new": 0,
"id": 7,
"rootFolderId": 7,
"canShare": true,
"canEdit": true,
"title": "Common",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-30T08:06:23.0000000Z",
"rootFolderType": 1,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [7],
"startIndex": 0,
"count": 9,
"total": 9,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,42 @@
{
"count": 1,
"response": {
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 1,
"foldersCount": 0,
"new": 0,
"id": 4,
"rootFolderId": 4,
"canShare": false,
"canEdit": false,
"title": "Favorites",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 10,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [4],
"startIndex": 0,
"count": 1,
"total": 1,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,43 @@
{
"count": 1,
"response": {
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 6,
"rootFolderId": 6,
"canShare": false,
"canEdit": true,
"title": "Private Room",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 13,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [6],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,42 @@
{
"count": 1,
"response": {
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 7,
"foldersCount": 0,
"new": 0,
"id": 5,
"rootFolderId": 5,
"canShare": false,
"canEdit": false,
"title": "Recent",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 11,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [5],
"startIndex": 0,
"count": 7,
"total": 7,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,43 @@
{
"count": 1,
"response": {
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 3,
"rootFolderId": 3,
"canShare": false,
"canEdit": false,
"title": "Shared with me",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 6,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [3],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,42 @@
{
"count": 1,
"response": {
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 1,
"foldersCount": 0,
"new": 0,
"id": 8,
"rootFolderId": 8,
"canShare": false,
"canEdit": false,
"title": "Trash",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 3,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [8],
"startIndex": 0,
"count": 1,
"total": 1,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,404 @@
{
"count": 1,
"response": {
"files": [
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "6.83 KB",
"pureContentLength": 6994,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=7",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=7&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=7&version=1",
"thumbnailStatus": 1,
"id": 7,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "12441.docx",
"access": 0,
"shared": false,
"created": "2021-09-27T08:42:26.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T07:07:20.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "6.83 KB",
"pureContentLength": 6994,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=39",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=39&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=39&version=1",
"thumbnailStatus": 1,
"id": 39,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New document.docx",
"access": 0,
"shared": false,
"created": "2021-11-22T08:47:52.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-22T08:47:52.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "6.83 KB",
"pureContentLength": 6994,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=33",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=33&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=33&version=1",
"thumbnailStatus": 1,
"id": 33,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "assdasdaloansbjfnaolsifjpasifjpoas;fjpasof.docx",
"access": 0,
"shared": false,
"created": "2021-10-29T12:04:05.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-29T12:04:05.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "1.08 MB",
"pureContentLength": 1130719,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=3",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=3&version=1",
"fileType": 6,
"fileExst": ".pptx",
"comment": "Создано",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=3&version=1",
"thumbnailStatus": 1,
"id": 3,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Presentation.pptx",
"access": 0,
"shared": true,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-27T15:14:26.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "6.83 KB",
"pureContentLength": 6994,
"fileStatus": 32,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=6",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=6&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Created",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=6&version=1",
"thumbnailStatus": 1,
"id": 6,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "123.docx",
"access": 0,
"shared": false,
"created": "2021-09-27T08:42:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-27T08:42:22.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "58.05 MB",
"pureContentLength": 60864650,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=5",
"webUrl": "http://localhost:8092/products/files/#preview/5",
"fileType": 2,
"fileExst": ".mp4",
"comment": "Создано",
"thumbnailStatus": 0,
"id": 5,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Video.mp4",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:23.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:23.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "55.88 KB",
"pureContentLength": 57225,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=2",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=2&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Создано",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=2&version=1",
"thumbnailStatus": 1,
"id": 2,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Document.docx",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "139.99 KB",
"pureContentLength": 143346,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=4",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=4&version=1",
"fileType": 5,
"fileExst": ".xlsx",
"comment": "Создано",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=4&version=1",
"thumbnailStatus": 1,
"id": 4,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Spreadsheets.xlsx",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "5.11 MB",
"pureContentLength": 5357109,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=1",
"webUrl": "http://localhost:8092/products/files/#preview/1",
"fileType": 3,
"fileExst": ".mp3",
"comment": "Создано",
"thumbnailStatus": 0,
"id": 1,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Audio.mp3",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"folders": [
{
"parentId": 2,
"filesCount": 5,
"foldersCount": 36,
"new": 0,
"id": 9,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"current": {
"parentId": 0,
"filesCount": 14,
"foldersCount": 37,
"isShareable": true,
"new": 0,
"id": 2,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "My documents",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-22T08:47:52.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [2],
"startIndex": 0,
"count": 10,
"total": 10,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,190 @@
{
"count": 1,
"response": {
"files": [
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "58.05 MB",
"pureContentLength": 60864650,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=5",
"webUrl": "http://localhost:8092/products/files/#preview/5",
"fileType": 2,
"fileExst": ".mp4",
"comment": "Создано",
"thumbnailStatus": 0,
"id": 5,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Video.mp4",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:23.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:23.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "55.88 KB",
"pureContentLength": 57225,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=2",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=2&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Создано",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=2&version=1",
"thumbnailStatus": 1,
"id": 2,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Document.docx",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "139.99 KB",
"pureContentLength": 143346,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=4",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=4&version=1",
"fileType": 5,
"fileExst": ".xlsx",
"comment": "Создано",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=4&version=1",
"thumbnailStatus": 1,
"id": 4,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Spreadsheets.xlsx",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "5.11 MB",
"pureContentLength": 5357109,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=1",
"webUrl": "http://localhost:8092/products/files/#preview/1",
"fileType": 3,
"fileExst": ".mp3",
"comment": "Создано",
"thumbnailStatus": 0,
"id": 1,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Audio.mp3",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 2,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "My documents",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-22T08:47:52.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [2],
"startIndex": 0,
"count": 9,
"total": 9,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,219 @@
{
"count": 5,
"response": {
"files": [
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "58.05 MB",
"pureContentLength": 60864650,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=5",
"webUrl": "http://localhost:8092/products/files/#preview/5",
"fileType": 2,
"fileExst": ".mp4",
"comment": "Создано",
"thumbnailStatus": 0,
"id": 5,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Video.mp4",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:23.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:23.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "55.88 KB",
"pureContentLength": 57225,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=2",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=2&version=1",
"fileType": 7,
"fileExst": ".docx",
"comment": "Создано",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=2&version=1",
"thumbnailStatus": 1,
"id": 2,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Document.docx",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "139.99 KB",
"pureContentLength": 143346,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=4",
"webUrl": "http://localhost:8092/products/files/doceditor?fileid=4&version=1",
"fileType": 5,
"fileExst": ".xlsx",
"comment": "Создано",
"thumbnailUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=thumb&fileid=4&version=1",
"thumbnailStatus": 1,
"id": 4,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Spreadsheets.xlsx",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
{
"folderId": 2,
"version": 1,
"versionGroup": 1,
"contentLength": "5.11 MB",
"pureContentLength": 5357109,
"fileStatus": 0,
"viewUrl": "http://localhost:8092/products/files/httphandlers/filehandler.ashx?action=download&fileid=1",
"webUrl": "http://localhost:8092/products/files/#preview/1",
"fileType": 3,
"fileExst": ".mp3",
"comment": "Создано",
"thumbnailStatus": 0,
"id": 1,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "ONLYOFFICE Sample Audio.mp3",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"folders": [
{
"parentId": 2,
"filesCount": 6,
"foldersCount": 0,
"new": 0,
"id": 9,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"current": {
"parentId": 2,
"filesCount": 4,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 2,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "My documents",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-22T08:47:52.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [2],
"startIndex": 0,
"count": 9,
"total": 9,
"new": 0
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,270 @@
{
"count": 7,
"response": [
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 2,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "My documents",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-22T08:47:52.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [2],
"startIndex": 0,
"count": 1,
"total": 1,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 3,
"rootFolderId": 3,
"canShare": false,
"canEdit": false,
"title": "Shared with me",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 6,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [3],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"new": 0,
"id": 4,
"rootFolderId": 4,
"canShare": false,
"canEdit": false,
"title": "Favorites",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 10,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [4],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"new": 0,
"id": 5,
"rootFolderId": 5,
"canShare": false,
"canEdit": false,
"title": "Recent",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 11,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [5],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 6,
"rootFolderId": 6,
"canShare": false,
"canEdit": true,
"title": "Private Room",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 13,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [6],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 7,
"rootFolderId": 7,
"canShare": true,
"canEdit": true,
"title": "Common",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-30T08:06:23.0000000Z",
"rootFolderType": 1,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [7],
"startIndex": 0,
"count": 1,
"total": 1,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 1,
"foldersCount": 0,
"new": 0,
"id": 8,
"rootFolderId": 8,
"canShare": false,
"canEdit": false,
"title": "Trash",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 3,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [8],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
}
],
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,299 @@
{
"count": 7,
"response": [
{
"files": [],
"folders": [
{
"parentId": 2,
"filesCount": 0,
"foldersCount": 6,
"new": 0,
"id": 9,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-10-18T08:35:13.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"current": {
"parentId": 0,
"filesCount": 10,
"foldersCount": 1,
"isShareable": true,
"new": 0,
"id": 2,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "My documents",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:13.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-22T08:47:52.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [2],
"startIndex": 0,
"count": 1,
"total": 1,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 3,
"rootFolderId": 3,
"canShare": false,
"canEdit": false,
"title": "Shared with me",
"access": 0,
"shared": false,
"created": "2021-09-15T10:00:22.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-15T10:00:22.0000000Z",
"rootFolderType": 6,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [3],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"new": 0,
"id": 4,
"rootFolderId": 4,
"canShare": false,
"canEdit": false,
"title": "Favorites",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 10,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [4],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"new": 0,
"id": 5,
"rootFolderId": 5,
"canShare": false,
"canEdit": false,
"title": "Recent",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 11,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [5],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 6,
"rootFolderId": 6,
"canShare": false,
"canEdit": true,
"title": "Private Room",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 13,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [6],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 0,
"foldersCount": 0,
"isShareable": true,
"new": 0,
"id": 7,
"rootFolderId": 7,
"canShare": true,
"canEdit": true,
"title": "Common",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-30T08:06:23.0000000Z",
"rootFolderType": 1,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [7],
"startIndex": 0,
"count": 1,
"total": 1,
"new": 0
},
{
"files": [],
"folders": [],
"current": {
"parentId": 0,
"filesCount": 1,
"foldersCount": 0,
"new": 0,
"id": 8,
"rootFolderId": 8,
"canShare": false,
"canEdit": false,
"title": "Trash",
"access": 0,
"shared": false,
"created": "2021-09-16T12:09:15.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-09-16T12:09:15.0000000Z",
"rootFolderType": 3,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
},
"pathParts": [8],
"startIndex": 0,
"count": 0,
"total": 0,
"new": 0
}
],
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,6 @@
{
"count": 4,
"response": [["SharePoint"], ["kDrive"], ["Yandex"], ["WebDav"]],
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,22 @@
{
"count": 1,
"response": {
"confirmDelete": false,
"enableThirdParty": true,
"storeOriginalFiles": false,
"updateIfExist": false,
"convertNotify": true,
"hideConfirmConvertSave": false,
"hideConfirmConvertOpen": false,
"defaultOrder": { "is_asc": false, "property": 0 },
"forcesave": false,
"storeForcesave": false,
"recentSection": true,
"favoritesSection": true,
"templatesSection": true,
"downloadTarGz": false,
"chunkUploadSize": 10485760
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1 @@
{ "count": 0, "response": [], "status": 0, "statusCode": 200 }

View File

@ -0,0 +1 @@
{ "count": 1, "response": [5, 1], "status": 0, "statusCode": 200 }

View File

@ -0,0 +1,35 @@
{
"count": 1,
"response": [
{
"parentId": 2,
"filesCount": 6,
"foldersCount": 7,
"new": 0,
"id": 9,
"rootFolderId": 2,
"canShare": true,
"canEdit": true,
"title": "New folder",
"access": 0,
"shared": false,
"created": "2021-09-27T08:44:06.0000000Z",
"createdBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"updated": "2021-11-23T12:48:25.0000000Z",
"rootFolderType": 5,
"updatedBy": {
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
}
}
],
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,29 @@
{
"count": 2,
"response": [
{
"id": "e67be73d-f9ae-4ce1-8fec-1880cb518cb4",
"appName": "files",
"title": "Documents",
"link": "/products/files/",
"iconUrl": "images/files.menu.svg",
"imageUrl": "images/files.svg",
"helpUrl": "~/products/files/",
"description": "Edit, share and collaborate on office documents in real-time. Create and manage common docs for the whole team to access. \n100% compatibility with docx, xlsx, pptx. ",
"isPrimary": true
},
{
"id": "f4d98afd-d336-4332-8778-3c6945c81ea0",
"appName": "people",
"title": "People",
"link": "/products/people/",
"iconUrl": "images/people.menu.svg",
"imageUrl": "images/people.svg",
"helpUrl": "/products/people/help.aspx",
"description": "Add new users, invite or import them. Manage users and view their detailed information.",
"isPrimary": false
}
],
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,30 @@
{
"count": 1,
"response": {
"firstName": "Administrator",
"lastName": "",
"userName": "administrator",
"email": "test@gmail.com",
"status": 1,
"activationStatus": 0,
"department": "",
"workFrom": "2021-09-15T08:14:46.0000000Z",
"avatarMax": "/images/default_user_photo_size_200-200.png",
"avatarMedium": "/images/default_user_photo_size_48-48.png",
"avatar": "/images/default_user_photo_size_82-82.png",
"isAdmin": true,
"isLDAP": false,
"listAdminModules": ["files", "people"],
"isOwner": true,
"isVisitor": false,
"cultureName": "en-US",
"mobilePhoneActivationStatus": 0,
"isSSO": false,
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,33 @@
{
"count": 1,
"response": {
"firstName": "Administrator",
"lastName": "",
"userName": "administrator",
"email": "test@gmail.com",
"status": 1,
"activationStatus": 0,
"department": "",
"workFrom": "2021-09-15T08:14:46.0000000Z",
"avatarMax": "/images/default_user_photo_size_200-200.png",
"avatarMedium": "/images/default_user_photo_size_48-48.png",
"avatar": "/images/default_user_photo_size_82-82.png",
"isAdmin": true,
"isLDAP": false,
"listAdminModules": [
"files",
"people"
],
"isOwner": true,
"isVisitor": false,
"cultureName": "zh-CN",
"mobilePhoneActivationStatus": 0,
"isSSO": false,
"id": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"displayName": "Administrator ",
"avatarSmall": "/images/default_user_photo_size_32-32.png",
"profileUrl": "http://localhost:8092/products/people/view/administrator"
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,6 @@
{
"count": 1,
"response": { "communityServer": "11.5.0", "documentServer": "4.1.5.1", "mailServer": "" },
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,18 @@
{
"count": 1,
"response": {
"id": "Common",
"name": "Common",
"userCaption": "User",
"usersCaption": "Users",
"groupCaption": "Group",
"groupsCaption": "Groups",
"userPostCaption": "Title",
"regDateCaption": "Registration Date",
"groupHeadCaption": "Head",
"guestCaption": "Guest",
"guestsCaption": "Guests"
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,6 @@
{
"count": 6,
"response": ["en-US", "it-IT", "de-DE", "pt-BR", "ru-RU", "fr-FR"],
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,40 @@
{
"count": 1,
"response": {
"timezone": "UTC",
"trustedDomains": [],
"trustedDomainsType": 1,
"culture": "en-US",
"utcOffset": {
"ticks": 0,
"days": 0,
"hours": 0,
"milliseconds": 0,
"minutes": 0,
"seconds": 0,
"totalDays": 0,
"totalHours": 0,
"totalMilliseconds": 0,
"totalMinutes": 0,
"totalSeconds": 0
},
"utcHoursOffset": 0,
"greetingSettings": "Web Office",
"ownerId": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"nameSchemaId": "Common",
"personal": false,
"firebase": {
"apiKey": "",
"authDomain": "",
"projectId": "",
"storageBucket": "",
"messagingSenderId": "",
"appId": "",
"measurementId": ""
},
"version": "11.5.0",
"debugInfo": true
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,40 @@
{
"count": 1,
"response": {
"timezone": "UTC",
"trustedDomains": [],
"trustedDomainsType": 1,
"culture": "zh-CN",
"utcOffset": {
"ticks": 0,
"days": 0,
"hours": 0,
"milliseconds": 0,
"minutes": 0,
"seconds": 0,
"totalDays": 0,
"totalHours": 0,
"totalMilliseconds": 0,
"totalMinutes": 0,
"totalSeconds": 0
},
"utcHoursOffset": 0,
"greetingSettings": "Web Office",
"ownerId": "fcfa85e3-15fc-11ec-8f4f-80ce62334fc7",
"nameSchemaId": "Common",
"personal": false,
"firebase": {
"apiKey": "",
"authDomain": "",
"projectId": "",
"storageBucket": "",
"messagingSenderId": "",
"appId": "",
"measurementId": ""
},
"version": "11.5.0",
"debugInfo": true
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,200 @@
const Endpoints = require('./mocking/endpoints.js');
const browser = process.env.profile || 'chromium';
const deviceType = process.env.DEVICE_TYPE || 'desktop';
const isModel = !!process.env.MODEL;
const featureName = isModel
? `Files render on '${browser}' with '${deviceType}' dimension (model)`
: `Files render on '${browser}' with '${deviceType}' dimension`;
Feature(featureName);
Before(async ({ I }) => {
I.mockData();
});
Scenario('Default root folders render test', ({ I }) => {
I.mockEndpoint(Endpoints.root, 'empty');
I.mockEndpoint(Endpoints.my, 'default');
I.mockEndpoint(Endpoints.getFolder(3), 'emptyShared');
I.mockEndpoint(Endpoints.getFolder(4), 'emptyFavorites');
I.mockEndpoint(Endpoints.getFolder(5), 'emptyRecent');
I.mockEndpoint(Endpoints.getFolder(6), 'emptyPrivate');
I.mockEndpoint(Endpoints.getFolder(7), 'emptyCommon');
I.mockEndpoint(Endpoints.getFolder(8), 'emptyTrash');
I.amOnPage('/products/files');
I.wait(5);
I.see('My documents');
I.saveScreenshot(`1.row-default-my-documents-tab.png`);
if (!isModel) {
I.seeVisualDiff(`1.row-default-my-documents-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'mobile') {
I.switchView('tile');
I.saveScreenshot(`1.tile-default-my-documents-tab.png`);
if (!isModel) {
I.seeVisualDiff(`1.tile-default-my-documents-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
}
if (deviceType !== 'desktop') I.openArticle();
I.click('Shared with me');
I.wait(2);
I.see('Shared with me');
I.saveScreenshot(`2.empty-shared-with-me-tab.png`);
if (!isModel) {
I.seeVisualDiff(`2.empty-shared-with-me-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'desktop') I.openArticle();
I.click('Favorites');
I.wait(2);
I.see('Favorites');
I.saveScreenshot(`3.empty-favorites-tab.png`);
if (!isModel) {
I.seeVisualDiff(`3.empty-favorites-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'desktop') I.openArticle();
I.click('Recent');
I.wait(2);
I.see('Recent');
I.saveScreenshot(`4.empty-recent-tab.png`);
if (!isModel) {
I.seeVisualDiff(`4.empty-recent-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'desktop') I.openArticle();
I.click('Private Room');
I.wait(2);
I.see('Private Room');
I.saveScreenshot(`5.empty-private-room-tab.png`);
if (!isModel) {
I.seeVisualDiff(`5.empty-private-room-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'desktop') I.openArticle();
I.click('Common');
I.wait(2);
I.see('Common');
I.saveScreenshot(`6.empty-common-tab.png`);
if (!isModel) {
I.seeVisualDiff(`6.empty-common-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'desktop') I.openArticle();
I.click('Trash');
I.wait(2);
I.see('Trash');
I.saveScreenshot(`7.empty-trash-tab.png`);
if (!isModel) {
I.seeVisualDiff(`7.empty-trash-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
});
Scenario('Default settings render test', ({ I }) => {
I.mockEndpoint(Endpoints.root, 'empty');
I.mockEndpoint(Endpoints.my, 'default');
I.amOnPage('/products/files');
I.wait(5);
if (deviceType !== 'desktop') I.openArticle();
I.click({ react: 'ContextTreeNode', props: { eventKey: 'settings' } });
I.see('Common settings');
I.see('Admin settings');
I.see('Connected clouds');
I.click('Common settings');
if (deviceType !== 'desktop') I.forceClick('.backdrop-active');
I.see('Common settings');
I.saveScreenshot(`8.default-common-settings-tab.png`);
if (!isModel) {
I.seeVisualDiff(`8.default-common-settings-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'desktop') I.openArticle();
I.click('Admin settings');
if (deviceType !== 'desktop') I.forceClick('.backdrop-active');
I.see('Admin settings');
I.saveScreenshot(`9.default-admin-settings-tab.png`);
if (!isModel) {
I.seeVisualDiff(`9.default-admin-settings-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'desktop') I.openArticle();
I.click('Connected clouds');
if (deviceType !== 'desktop') I.forceClick('.backdrop-active');
I.see('Connected clouds');
I.saveScreenshot(`10.default-connected-clouds-tab.png`);
if (!isModel) {
I.seeVisualDiff(`10.default-connected-clouds-tab.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
});
Scenario('Many documents and folders render test', ({ I }) => {
I.mockEndpoint(Endpoints.root, 'one');
I.mockEndpoint(Endpoints.my, 'many');
I.mockEndpoint(Endpoints.getFolder(9), '9');
I.mockEndpoint(Endpoints.getSubfolder(9), '9');
I.amOnPage('/products/files');
I.wait(5);
I.click('New folder');
I.see('New folder');
I.saveScreenshot(`11.row-many-documents.png`);
if (!isModel) {
I.seeVisualDiff(`11.row-many-documents.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
if (deviceType !== 'mobile') {
I.switchView('tile');
I.saveScreenshot(`11.tile-many-documents.png`);
if (!isModel) {
I.seeVisualDiff(`11.tile-many-documents.png`, {
tolerance: 3,
prepareBaseImage: false,
});
}
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Some files were not shown because too many files have changed in this diff Show More