Răsfoiți Sursa

Merge pull request #4213 from weseek/fix/password-reset-brunch

Fix/password reset brunch
Yuki Takei 4 ani în urmă
părinte
comite
a5da0f4431
36 a modificat fișierele cu 1 adăugiri și 5368 ștergeri
  1. 1 3
      packages/app/src/client/nologin.jsx
  2. 0 2
      packages/app/src/components/PasswordResetRequestForm.jsx
  3. 0 9
      public/0.bundle.js
  4. 0 164
      public/js/admin.bundle.js
  5. 0 164
      public/js/app.bundle.js
  6. 0 108
      public/js/boot.bundle.js
  7. 0 9
      public/js/commons.bundle.js
  8. 0 100
      public/js/dev.bundle.js
  9. 0 96
      public/js/hackmd-agent.bundle.js
  10. 0 95
      public/js/hackmd-styles.bundle.js
  11. 0 96
      public/js/ie11-polyfill.bundle.js
  12. 0 210
      public/js/legacy-presentation.bundle.js
  13. 0 164
      public/js/legacy.bundle.js
  14. 0 164
      public/js/nologin.bundle.js
  15. 0 164
      public/js/plugin.bundle.js
  16. 0 10
      public/js/vendors.bundle.js
  17. 0 32
      public/manifest.json
  18. 0 164
      public/styles/style-app.bundle.js
  19. 0 31
      public/styles/style-commons.bundle.js
  20. 0 14
      public/styles/style-hackmd.bundle.css
  21. 0 100
      public/styles/style-hackmd.bundle.js
  22. 0 1287
      public/styles/style-presentation.bundle.css
  23. 0 100
      public/styles/style-presentation.bundle.js
  24. 0 164
      public/styles/theme-antarctic.bundle.js
  25. 0 164
      public/styles/theme-christmas.bundle.js
  26. 0 164
      public/styles/theme-default.bundle.js
  27. 0 164
      public/styles/theme-future.bundle.js
  28. 0 164
      public/styles/theme-halloween.bundle.js
  29. 0 164
      public/styles/theme-island.bundle.js
  30. 0 164
      public/styles/theme-kibela.bundle.js
  31. 0 164
      public/styles/theme-mono-blue.bundle.js
  32. 0 164
      public/styles/theme-nature.bundle.js
  33. 0 164
      public/styles/theme-spring.bundle.js
  34. 0 164
      public/styles/theme-wood.bundle.js
  35. 0 243
      src/server/models/config.js
  36. 0 35
      tmp/plugins/plugin-definitions.js

+ 1 - 3
packages/app/src/client/nologin.jsx

@@ -11,8 +11,6 @@ import InstallerForm from '../components/InstallerForm';
 import LoginForm from '../components/LoginForm';
 import LoginForm from '../components/LoginForm';
 import PasswordResetRequestForm from '../components/PasswordResetRequestForm';
 import PasswordResetRequestForm from '../components/PasswordResetRequestForm';
 import PasswordResetExecutionForm from '../components/PasswordResetExecutionForm';
 import PasswordResetExecutionForm from '../components/PasswordResetExecutionForm';
-// import InstallerForm from '../components/InstallerForm';
-// import LoginForm from '../components/LoginForm';
 
 
 const i18n = i18nFactory();
 const i18n = i18nFactory();
 
 
@@ -100,7 +98,7 @@ if (passwordResetRequestFormElem) {
   );
   );
 }
 }
 
 
-// render PasswordResetRequestForm
+// render PasswordResetExecutionForm
 const passwordResetExecutionFormElem = document.getElementById('password-reset-execution-form');
 const passwordResetExecutionFormElem = document.getElementById('password-reset-execution-form');
 if (passwordResetExecutionFormElem) {
 if (passwordResetExecutionFormElem) {
 
 

+ 0 - 2
packages/app/src/components/PasswordResetRequestForm.jsx

@@ -1,10 +1,8 @@
 import React, { useState } from 'react';
 import React, { useState } from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
 import { withTranslation } from 'react-i18next';
 import { withTranslation } from 'react-i18next';
-// import { toastSuccess, toastError } from '../util/apiNotification';
 import { toastSuccess, toastError } from '~/client/util/apiNotification';
 import { toastSuccess, toastError } from '~/client/util/apiNotification';
 
 
-// import AppContainer from '../services/AppContainer';
 import AppContainer from '~/client/services/AppContainer';
 import AppContainer from '~/client/services/AppContainer';
 import { withUnstatedContainers } from './UnstatedUtils';
 import { withUnstatedContainers } from './UnstatedUtils';
 
 

Fișier diff suprimat deoarece este prea mare
+ 0 - 9
public/0.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/js/admin.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/js/app.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 108
public/js/boot.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 9
public/js/commons.bundle.js


+ 0 - 100
public/js/dev.bundle.js

@@ -1,100 +0,0 @@
-/******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId]) {
-/******/ 			return installedModules[moduleId].exports;
-/******/ 		}
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
-/******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// define __esModule on exports
-/******/ 	__webpack_require__.r = function(exports) {
-/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
-/******/ 		}
-/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
-/******/ 	};
-/******/
-/******/ 	// create a fake namespace object
-/******/ 	// mode & 1: value is a module id, require it
-/******/ 	// mode & 2: merge all properties of value into the ns
-/******/ 	// mode & 4: return value when already ns object
-/******/ 	// mode & 8|1: behave like require
-/******/ 	__webpack_require__.t = function(value, mode) {
-/******/ 		if(mode & 1) value = __webpack_require__(value);
-/******/ 		if(mode & 8) return value;
-/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
-/******/ 		var ns = Object.create(null);
-/******/ 		__webpack_require__.r(ns);
-/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
-/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
-/******/ 		return ns;
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "/";
-/******/
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = "./src/client/js/dev.js");
-/******/ })
-/************************************************************************/
-/******/ ({
-
-/***/ "./src/client/js/dev.js":
-/*!******************************!*\
-  !*** ./src/client/js/dev.js ***!
-  \******************************/
-/*! no static exports found */
-/***/ (function(module, exports) {
-
-eval("/**\n * dev tools\n *///# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY2xpZW50L2pzL2Rldi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jbGllbnQvanMvZGV2LmpzP2FkZDciXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBkZXYgdG9vbHNcbiAqL1xuIl0sIm1hcHBpbmdzIjoiQUFBQTs7QSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/client/js/dev.js\n");
-
-/***/ })
-
-/******/ });

Fișier diff suprimat deoarece este prea mare
+ 0 - 96
public/js/hackmd-agent.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 95
public/js/hackmd-styles.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 96
public/js/ie11-polyfill.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 210
public/js/legacy-presentation.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/js/legacy.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/js/nologin.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/js/plugin.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 10
public/js/vendors.bundle.js


+ 0 - 32
public/manifest.json

@@ -1,32 +0,0 @@
-{
-  "js/admin.js": "/js/admin.bundle.js",
-  "js/app.js": "/js/app.bundle.js",
-  "js/boot.js": "/js/boot.bundle.js",
-  "js/commons.js": "/js/commons.bundle.js",
-  "js/dev.js": "/js/dev.bundle.js",
-  "js/hackmd-agent.js": "/js/hackmd-agent.bundle.js",
-  "js/hackmd-styles.js": "/js/hackmd-styles.bundle.js",
-  "js/ie11-polyfill.js": "/js/ie11-polyfill.bundle.js",
-  "js/legacy-presentation.js": "/js/legacy-presentation.bundle.js",
-  "js/legacy.js": "/js/legacy.bundle.js",
-  "js/nologin.js": "/js/nologin.bundle.js",
-  "js/plugin.js": "/js/plugin.bundle.js",
-  "js/vendors.js": "/js/vendors.bundle.js",
-  "styles/style-app.js": "/styles/style-app.bundle.js",
-  "styles/style-commons.js": "/styles/style-commons.bundle.js",
-  "styles/style-hackmd.css": "/styles/style-hackmd.bundle.css",
-  "styles/style-hackmd.js": "/styles/style-hackmd.bundle.js",
-  "styles/style-presentation.css": "/styles/style-presentation.bundle.css",
-  "styles/style-presentation.js": "/styles/style-presentation.bundle.js",
-  "styles/theme-antarctic.js": "/styles/theme-antarctic.bundle.js",
-  "styles/theme-christmas.js": "/styles/theme-christmas.bundle.js",
-  "styles/theme-default.js": "/styles/theme-default.bundle.js",
-  "styles/theme-future.js": "/styles/theme-future.bundle.js",
-  "styles/theme-halloween.js": "/styles/theme-halloween.bundle.js",
-  "styles/theme-island.js": "/styles/theme-island.bundle.js",
-  "styles/theme-kibela.js": "/styles/theme-kibela.bundle.js",
-  "styles/theme-mono-blue.js": "/styles/theme-mono-blue.bundle.js",
-  "styles/theme-nature.js": "/styles/theme-nature.bundle.js",
-  "styles/theme-spring.js": "/styles/theme-spring.bundle.js",
-  "styles/theme-wood.js": "/styles/theme-wood.bundle.js"
-}

Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/style-app.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 31
public/styles/style-commons.bundle.js


+ 0 - 14
public/styles/style-hackmd.bundle.css

@@ -1,14 +0,0 @@
-.navbar-header .navbar-brand {
-  display: none; }
-
-.navbar-form {
-  margin-left: 15px; }
-
-.navbar-right .ui-new, .navbar-right .ui-publish {
-  display: none; }
-
-.CodeMirror pre.CodeMirror-line {
-  font-family: Osaka-Mono, 'MS Gothic', Monaco, Menlo, Consolas, 'Courier New', monospace;
-  font-size: 14px;
-  line-height: 20px; }
-

+ 0 - 100
public/styles/style-hackmd.bundle.js

@@ -1,100 +0,0 @@
-/******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId]) {
-/******/ 			return installedModules[moduleId].exports;
-/******/ 		}
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
-/******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// define __esModule on exports
-/******/ 	__webpack_require__.r = function(exports) {
-/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
-/******/ 		}
-/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
-/******/ 	};
-/******/
-/******/ 	// create a fake namespace object
-/******/ 	// mode & 1: value is a module id, require it
-/******/ 	// mode & 2: merge all properties of value into the ns
-/******/ 	// mode & 4: return value when already ns object
-/******/ 	// mode & 8|1: behave like require
-/******/ 	__webpack_require__.t = function(value, mode) {
-/******/ 		if(mode & 1) value = __webpack_require__(value);
-/******/ 		if(mode & 8) return value;
-/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
-/******/ 		var ns = Object.create(null);
-/******/ 		__webpack_require__.r(ns);
-/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
-/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
-/******/ 		return ns;
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "/";
-/******/
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = "./src/client/styles/hackmd/style.scss");
-/******/ })
-/************************************************************************/
-/******/ ({
-
-/***/ "./src/client/styles/hackmd/style.scss":
-/*!*********************************************!*\
-  !*** ./src/client/styles/hackmd/style.scss ***!
-  \*********************************************/
-/*! no static exports found */
-/***/ (function(module, exports, __webpack_require__) {
-
-eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY2xpZW50L3N0eWxlcy9oYWNrbWQvc3R5bGUuc2Nzcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jbGllbnQvc3R5bGVzL2hhY2ttZC9zdHlsZS5zY3NzPzJmN2QiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/client/styles/hackmd/style.scss\n");
-
-/***/ })
-
-/******/ });

Fișier diff suprimat deoarece este prea mare
+ 0 - 1287
public/styles/style-presentation.bundle.css


+ 0 - 100
public/styles/style-presentation.bundle.js

@@ -1,100 +0,0 @@
-/******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId]) {
-/******/ 			return installedModules[moduleId].exports;
-/******/ 		}
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
-/******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// define __esModule on exports
-/******/ 	__webpack_require__.r = function(exports) {
-/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
-/******/ 		}
-/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
-/******/ 	};
-/******/
-/******/ 	// create a fake namespace object
-/******/ 	// mode & 1: value is a module id, require it
-/******/ 	// mode & 2: merge all properties of value into the ns
-/******/ 	// mode & 4: return value when already ns object
-/******/ 	// mode & 8|1: behave like require
-/******/ 	__webpack_require__.t = function(value, mode) {
-/******/ 		if(mode & 1) value = __webpack_require__(value);
-/******/ 		if(mode & 8) return value;
-/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
-/******/ 		var ns = Object.create(null);
-/******/ 		__webpack_require__.r(ns);
-/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
-/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
-/******/ 		return ns;
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "/";
-/******/
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = "./src/client/styles/scss/style-presentation.scss");
-/******/ })
-/************************************************************************/
-/******/ ({
-
-/***/ "./src/client/styles/scss/style-presentation.scss":
-/*!********************************************************!*\
-  !*** ./src/client/styles/scss/style-presentation.scss ***!
-  \********************************************************/
-/*! no static exports found */
-/***/ (function(module, exports, __webpack_require__) {
-
-eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY2xpZW50L3N0eWxlcy9zY3NzL3N0eWxlLXByZXNlbnRhdGlvbi5zY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NsaWVudC9zdHlsZXMvc2Nzcy9zdHlsZS1wcmVzZW50YXRpb24uc2Nzcz81Nzg5Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/client/styles/scss/style-presentation.scss\n");
-
-/***/ })
-
-/******/ });

Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-antarctic.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-christmas.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-default.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-future.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-halloween.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-island.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-kibela.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-mono-blue.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-nature.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-spring.bundle.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 164
public/styles/theme-wood.bundle.js


+ 0 - 243
src/server/models/config.js

@@ -1,243 +0,0 @@
-const mongoose = require('mongoose');
-const uniqueValidator = require('mongoose-unique-validator');
-
-module.exports = function(crowi) {
-
-  const configSchema = new mongoose.Schema({
-    ns: { type: String, required: true },
-    key: { type: String, required: true },
-    value: { type: String, required: true },
-  });
-  // define unique compound index
-  configSchema.index({ ns: 1, key: 1 }, { unique: true });
-  configSchema.plugin(uniqueValidator);
-
-  /**
-   * default values when GROWI is cleanly installed
-   */
-  function getConfigsForInstalling() {
-    // eslint-disable-next-line no-use-before-define
-    const config = getDefaultCrowiConfigs();
-
-    // overwrite
-    config['app:installed'] = true;
-    config['app:fileUpload'] = true;
-    config['customize:isSavedStatesOfTabChanges'] = false;
-
-    return config;
-  }
-
-  /**
-   * default values when migrated from Official Crowi
-   */
-  function getDefaultCrowiConfigs() {
-    /* eslint-disable key-spacing */
-    return {
-      'app:installed'     : false,
-      'app:confidential'  : undefined,
-
-      'app:fileUpload'    : false,
-      'app:globalLang'    : 'en_US',
-
-      'security:restrictGuestMode'      : 'Deny',
-
-      'security:registrationMode'      : 'Open',
-      'security:registrationWhiteList' : [],
-
-      'security:list-policy:hideRestrictedByOwner' : false,
-      'security:list-policy:hideRestrictedByGroup' : false,
-      'security:pageCompleteDeletionAuthority' : undefined,
-
-      'security:passport-local:isEnabled' : true,
-      'security:passport-local:isPasswordResetEnabled'  : true,
-      'security:passport-ldap:isEnabled' : false,
-      'security:passport-ldap:serverUrl' : undefined,
-      'security:passport-ldap:isUserBind' : undefined,
-      'security:passport-ldap:bindDN' : undefined,
-      'security:passport-ldap:bindDNPassword' : undefined,
-      'security:passport-ldap:searchFilter' : undefined,
-      'security:passport-ldap:attrMapUsername' : undefined,
-      'security:passport-ldap:attrMapName' : undefined,
-      'security:passport-ldap:attrMapMail' : undefined,
-      'security:passport-ldap:groupSearchBase' : undefined,
-      'security:passport-ldap:groupSearchFilter' : undefined,
-      'security:passport-ldap:groupDnProperty' : undefined,
-      'security:passport-ldap:isSameUsernameTreatedAsIdenticalUser': false,
-      'security:passport-saml:isEnabled' : false,
-      'security:passport-saml:isSameEmailTreatedAsIdenticalUser': false,
-
-      'security:passport-google:isEnabled' : false,
-      'security:passport-google:clientId': undefined,
-      'security:passport-google:clientSecret': undefined,
-      'security:passport-google:isSameUsernameTreatedAsIdenticalUser': false,
-
-      'security:passport-github:isEnabled' : false,
-      'security:passport-github:clientId': undefined,
-      'security:passport-github:clientSecret': undefined,
-      'security:passport-github:isSameUsernameTreatedAsIdenticalUser': false,
-
-      'security:passport-twitter:isEnabled' : false,
-      'security:passport-twitter:consumerKey': undefined,
-      'security:passport-twitter:consumerSecret': undefined,
-      'security:passport-twitter:isSameUsernameTreatedAsIdenticalUser': false,
-
-      'security:passport-oidc:isEnabled' : false,
-
-      'security:passport-basic:isEnabled' : false,
-      'security:passport-basic:isSameUsernameTreatedAsIdenticalUser': false,
-
-      'aws:s3Bucket'          : 'growi',
-      'aws:s3Region'          : 'ap-northeast-1',
-      'aws:s3AccessKeyId'     : undefined,
-      'aws:s3SecretAccessKey' : undefined,
-      'aws:s3CustomEndpoint'  : undefined,
-
-      'mail:from'         : undefined,
-      'mail:smtpHost'     : undefined,
-      'mail:smtpPort'     : undefined,
-      'mail:smtpUser'     : undefined,
-      'mail:smtpPassword' : undefined,
-
-      'plugin:isEnabledPlugins' : true,
-
-      'customize:css' : undefined,
-      'customize:script' : undefined,
-      'customize:header' : undefined,
-      'customize:title' : undefined,
-      'customize:highlightJsStyle' : 'github',
-      'customize:highlightJsStyleBorder' : false,
-      'customize:theme' : 'default',
-      'customize:isContainerFluid' : false,
-      'customize:isEnabledTimeline' : true,
-      'customize:isSavedStatesOfTabChanges' : true,
-      'customize:isEnabledAttachTitleHeader' : false,
-      'customize:showPageLimitationS' : 20,
-      'customize:showPageLimitationM' : 10,
-      'customize:showPageLimitationL' : 50,
-      'customize:showPageLimitationXL' : 20,
-      'customize:isEnabledStaleNotification': false,
-      'customize:isAllReplyShown': false,
-
-      'notification:owner-page:isEnabled': false,
-      'notification:group-page:isEnabled': false,
-
-      'importer:esa:team_name': undefined,
-      'importer:esa:access_token': undefined,
-      'importer:qiita:team_name': undefined,
-      'importer:qiita:access_token': undefined,
-    };
-    /* eslint-enable key-spacing */
-  }
-
-  function getDefaultMarkdownConfigs() {
-    return {
-      'markdown:xss:isEnabledPrevention': true,
-      'markdown:xss:option': 2,
-      'markdown:xss:tagWhiteList': [],
-      'markdown:xss:attrWhiteList': [],
-      'markdown:isEnabledLinebreaks': false,
-      'markdown:isEnabledLinebreaksInComments': true,
-      'markdown:adminPreferredIndentSize': 4,
-      'markdown:isIndentSizeForced': false,
-      'markdown:presentation:pageBreakSeparator': 1,
-      'markdown:presentation:pageBreakCustomSeparator': undefined,
-    };
-  }
-
-  function getDefaultNotificationConfigs() {
-    return {
-      'slack:isIncomingWebhookPrioritized': false,
-      'slack:incomingWebhookUrl': undefined,
-      'slack:token': undefined,
-    };
-  }
-
-  /**
-   * It is deprecated to use this for anything other than AppService#isDBInitialized.
-   */
-  configSchema.statics.getConfigsObjectForInstalling = function() {
-    return getConfigsForInstalling();
-  };
-
-  /**
-   * It is deprecated to use this for anything other than ConfigLoader#load.
-   */
-  configSchema.statics.getDefaultCrowiConfigsObject = function() {
-    return getDefaultCrowiConfigs();
-  };
-
-  /**
-   * It is deprecated to use this for anything other than ConfigLoader#load.
-   */
-  configSchema.statics.getDefaultMarkdownConfigsObject = function() {
-    return getDefaultMarkdownConfigs();
-  };
-
-  /**
-   * It is deprecated to use this for anything other than ConfigLoader#load.
-   */
-  configSchema.statics.getDefaultNotificationConfigsObject = function() {
-    return getDefaultNotificationConfigs();
-  };
-
-  configSchema.statics.getLocalconfig = function() {
-    const env = process.env;
-
-    const localConfig = {
-      crowi: {
-        title: crowi.appService.getAppTitle(),
-        url: crowi.appService.getSiteUrl(),
-        confidential: crowi.appService.getAppConfidential(),
-      },
-      upload: {
-        image: crowi.fileUploadService.getIsUploadable(),
-        file: crowi.fileUploadService.getFileUploadEnabled(),
-      },
-      registrationWhiteList: crowi.configManager.getConfig('crowi', 'security:registrationWhiteList'),
-      themeType: crowi.configManager.getConfig('crowi', 'customize:theme'),
-      isEnabledLinebreaks: crowi.configManager.getConfig('markdown', 'markdown:isEnabledLinebreaks'),
-      isEnabledLinebreaksInComments: crowi.configManager.getConfig('markdown', 'markdown:isEnabledLinebreaksInComments'),
-      adminPreferredIndentSize: crowi.configManager.getConfig('markdown', 'markdown:adminPreferredIndentSize'),
-      isIndentSizeForced: crowi.configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
-      pageBreakSeparator: crowi.configManager.getConfig('markdown', 'markdown:presentation:pageBreakSeparator'),
-      pageBreakCustomSeparator: crowi.configManager.getConfig('markdown', 'markdown:presentation:pageBreakCustomSeparator'),
-      isEnabledXssPrevention: crowi.configManager.getConfig('markdown', 'markdown:xss:isEnabledPrevention'),
-      isEnabledTimeline: crowi.configManager.getConfig('crowi', 'customize:isEnabledTimeline'),
-      isAllReplyShown: crowi.configManager.getConfig('crowi', 'customize:isAllReplyShown'),
-      xssOption: crowi.configManager.getConfig('markdown', 'markdown:xss:option'),
-      tagWhiteList: crowi.xssService.getTagWhiteList(),
-      attrWhiteList: crowi.xssService.getAttrWhiteList(),
-      highlightJsStyle: crowi.configManager.getConfig('crowi', 'customize:highlightJsStyle'),
-      highlightJsStyleBorder: crowi.configManager.getConfig('crowi', 'customize:highlightJsStyleBorder'),
-      customizeTitle: crowi.configManager.getConfig('crowi', 'customize:title'),
-      customizeHeader: crowi.configManager.getConfig('crowi', 'customize:header'),
-      customizeCss: crowi.configManager.getConfig('crowi', 'customize:css'),
-      isSavedStatesOfTabChanges: crowi.configManager.getConfig('crowi', 'customize:isSavedStatesOfTabChanges'),
-      isEnabledAttachTitleHeader: crowi.configManager.getConfig('crowi', 'customize:isEnabledAttachTitleHeader'),
-      customizeScript: crowi.configManager.getConfig('crowi', 'customize:script'),
-      hasSlackConfig: crowi.slackNotificationService.hasSlackConfig(),
-      env: {
-        PLANTUML_URI: env.PLANTUML_URI || null,
-        BLOCKDIAG_URI: env.BLOCKDIAG_URI || null,
-        DRAWIO_URI: env.DRAWIO_URI || null,
-        HACKMD_URI: env.HACKMD_URI || null,
-        MATHJAX: env.MATHJAX || null,
-        NO_CDN: env.NO_CDN || null,
-        GROWI_CLOUD_URI: env.GROWI_CLOUD_URI || null,
-        GROWI_APP_ID_FOR_GROWI_CLOUD: env.GROWI_APP_ID_FOR_GROWI_CLOUD || null,
-      },
-      isEnabledStaleNotification: crowi.configManager.getConfig('crowi', 'customize:isEnabledStaleNotification'),
-      isAclEnabled: crowi.aclService.isAclEnabled(),
-      isSearchServiceConfigured: crowi.searchService.isConfigured,
-      isSearchServiceReachable: crowi.searchService.isReachable,
-      isMailerSetup: crowi.mailService.isMailerSetup,
-      globalLang: crowi.configManager.getConfig('crowi', 'app:globalLang'),
-    };
-
-    return localConfig;
-  };
-
-  const Config = mongoose.model('Config', configSchema);
-
-  return Config;
-};

+ 0 - 35
tmp/plugins/plugin-definitions.js

@@ -1,35 +0,0 @@
-/*
- * !! don't commit this file !!
- * !!      just revert       !!
- */
-module.exports = [
-  {
-    name: 'growi-plugin-attachment-refs',
-    meta: require('growi-plugin-attachment-refs'),
-    entries: [
-      
-      require('growi-plugin-attachment-refs/src/client-entry.js').default,
-      
-    ]
-  },
-  {
-    name: 'growi-plugin-lsx',
-    meta: require('growi-plugin-lsx'),
-    entries: [
-      
-      require('growi-plugin-lsx/src/client-entry.js').default,
-      
-    ]
-  },
-  {
-    name: 'growi-plugin-pukiwiki-like-linker',
-    meta: require('growi-plugin-pukiwiki-like-linker'),
-    entries: [
-      
-      require('growi-plugin-pukiwiki-like-linker/src/client-entry.js').default,
-      
-    ]
-  },
-  
-
-]

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff