|
|
|
@ -3985,34 +3985,6 @@ function isHostComponent(element) {
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@mui/icons-material/ExpandMore.js":
|
|
|
|
|
/*!********************************************************!*\
|
|
|
|
|
!*** ./node_modules/@mui/icons-material/ExpandMore.js ***!
|
|
|
|
|
\********************************************************/
|
|
|
|
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", ({
|
|
|
|
|
value: true
|
|
|
|
|
}));
|
|
|
|
|
exports["default"] = void 0;
|
|
|
|
|
|
|
|
|
|
var _createSvgIcon = _interopRequireDefault(__webpack_require__(/*! ./utils/createSvgIcon */ "./node_modules/@mui/icons-material/utils/createSvgIcon.js"));
|
|
|
|
|
|
|
|
|
|
var _jsxRuntime = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js");
|
|
|
|
|
|
|
|
|
|
var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
|
|
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
|
|
|
}), 'ExpandMore');
|
|
|
|
|
|
|
|
|
|
exports["default"] = _default;
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@mui/icons-material/Mail.js":
|
|
|
|
|
/*!**************************************************!*\
|
|
|
|
|
!*** ./node_modules/@mui/icons-material/Mail.js ***!
|
|
|
|
@ -4118,6 +4090,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@mui/icons-material/esm/Download.js":
|
|
|
|
|
/*!**********************************************************!*\
|
|
|
|
|
!*** ./node_modules/@mui/icons-material/esm/Download.js ***!
|
|
|
|
|
\**********************************************************/
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
/* harmony import */ var _utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/createSvgIcon */ "./node_modules/@mui/material/utils/createSvgIcon.js");
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path", {
|
|
|
|
|
d: "M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"
|
|
|
|
|
}), 'Download'));
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@mui/icons-material/utils/createSvgIcon.js":
|
|
|
|
|
/*!*****************************************************************!*\
|
|
|
|
|
!*** ./node_modules/@mui/icons-material/utils/createSvgIcon.js ***!
|
|
|
|
@ -6565,155 +6558,6 @@ const cardClasses = (0,_mui_base__WEBPACK_IMPORTED_MODULE_1__["default"])('MuiCa
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@mui/material/CardActions/CardActions.js":
|
|
|
|
|
/*!***************************************************************!*\
|
|
|
|
|
!*** ./node_modules/@mui/material/CardActions/CardActions.js ***!
|
|
|
|
|
\***************************************************************/
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
|
|
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
|
|
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
|
|
|
/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.m.js");
|
|
|
|
|
/* harmony import */ var _mui_base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/base */ "./node_modules/@mui/base/composeClasses/composeClasses.js");
|
|
|
|
|
/* harmony import */ var _styles_styled__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../styles/styled */ "./node_modules/@mui/material/styles/styled.js");
|
|
|
|
|
/* harmony import */ var _styles_useThemeProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../styles/useThemeProps */ "./node_modules/@mui/material/styles/useThemeProps.js");
|
|
|
|
|
/* harmony import */ var _cardActionsClasses__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cardActionsClasses */ "./node_modules/@mui/material/CardActions/cardActionsClasses.js");
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const _excluded = ["disableSpacing", "className"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const useUtilityClasses = ownerState => {
|
|
|
|
|
const {
|
|
|
|
|
classes,
|
|
|
|
|
disableSpacing
|
|
|
|
|
} = ownerState;
|
|
|
|
|
const slots = {
|
|
|
|
|
root: ['root', !disableSpacing && 'spacing']
|
|
|
|
|
};
|
|
|
|
|
return (0,_mui_base__WEBPACK_IMPORTED_MODULE_5__["default"])(slots, _cardActionsClasses__WEBPACK_IMPORTED_MODULE_6__.getCardActionsUtilityClass, classes);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const CardActionsRoot = (0,_styles_styled__WEBPACK_IMPORTED_MODULE_7__["default"])('div', {
|
|
|
|
|
name: 'MuiCardActions',
|
|
|
|
|
slot: 'Root',
|
|
|
|
|
overridesResolver: (props, styles) => {
|
|
|
|
|
const {
|
|
|
|
|
ownerState
|
|
|
|
|
} = props;
|
|
|
|
|
return [styles.root, !ownerState.disableSpacing && styles.spacing];
|
|
|
|
|
}
|
|
|
|
|
})(({
|
|
|
|
|
ownerState
|
|
|
|
|
}) => (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
padding: 8
|
|
|
|
|
}, !ownerState.disableSpacing && {
|
|
|
|
|
'& > :not(:first-of-type)': {
|
|
|
|
|
marginLeft: 8
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
const CardActions = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(function CardActions(inProps, ref) {
|
|
|
|
|
const props = (0,_styles_useThemeProps__WEBPACK_IMPORTED_MODULE_8__["default"])({
|
|
|
|
|
props: inProps,
|
|
|
|
|
name: 'MuiCardActions'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const {
|
|
|
|
|
disableSpacing = false,
|
|
|
|
|
className
|
|
|
|
|
} = props,
|
|
|
|
|
other = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(props, _excluded);
|
|
|
|
|
|
|
|
|
|
const ownerState = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, props, {
|
|
|
|
|
disableSpacing
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const classes = useUtilityClasses(ownerState);
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(CardActionsRoot, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({
|
|
|
|
|
className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(classes.root, className),
|
|
|
|
|
ownerState: ownerState,
|
|
|
|
|
ref: ref
|
|
|
|
|
}, other));
|
|
|
|
|
});
|
|
|
|
|
true ? CardActions.propTypes
|
|
|
|
|
/* remove-proptypes */
|
|
|
|
|
= {
|
|
|
|
|
// ----------------------------- Warning --------------------------------
|
|
|
|
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
|
|
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The content of the component.
|
|
|
|
|
*/
|
|
|
|
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node),
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Override or extend the styles applied to the component.
|
|
|
|
|
*/
|
|
|
|
|
classes: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @ignore
|
|
|
|
|
*/
|
|
|
|
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* If `true`, the actions do not have additional margin.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
|
|
|
|
disableSpacing: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
|
|
|
*/
|
|
|
|
|
sx: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool)])), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)])
|
|
|
|
|
} : 0;
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CardActions);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@mui/material/CardActions/cardActionsClasses.js":
|
|
|
|
|
/*!**********************************************************************!*\
|
|
|
|
|
!*** ./node_modules/@mui/material/CardActions/cardActionsClasses.js ***!
|
|
|
|
|
\**********************************************************************/
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
/* harmony export */ "getCardActionsUtilityClass": () => (/* binding */ getCardActionsUtilityClass),
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
/* harmony import */ var _mui_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mui/base */ "./node_modules/@mui/base/generateUtilityClass/generateUtilityClass.js");
|
|
|
|
|
/* harmony import */ var _mui_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mui/base */ "./node_modules/@mui/base/generateUtilityClasses/generateUtilityClasses.js");
|
|
|
|
|
|
|
|
|
|
function getCardActionsUtilityClass(slot) {
|
|
|
|
|
return (0,_mui_base__WEBPACK_IMPORTED_MODULE_0__["default"])('MuiCardActions', slot);
|
|
|
|
|
}
|
|
|
|
|
const cardActionsClasses = (0,_mui_base__WEBPACK_IMPORTED_MODULE_1__["default"])('MuiCardActions', ['root', 'spacing']);
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cardActionsClasses);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./node_modules/@mui/material/CardContent/CardContent.js":
|
|
|
|
|
/*!***************************************************************!*\
|
|
|
|
|
!*** ./node_modules/@mui/material/CardContent/CardContent.js ***!
|
|
|
|
@ -36215,14 +36059,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony import */ var _List__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List */ "./resources/js/components/pages/List.tsx");
|
|
|
|
|
/* harmony import */ var _Prompt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Prompt */ "./resources/js/components/pages/Prompt.tsx");
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Alert/Alert.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/AlertTitle/AlertTitle.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Button/Button.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Divider/Divider.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Alert/Alert.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/AlertTitle/AlertTitle.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Button/Button.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Divider/Divider.js");
|
|
|
|
|
/* harmony import */ var storage_encryption__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! storage-encryption */ "./node_modules/storage-encryption/build/index.js");
|
|
|
|
|
/* harmony import */ var storage_encryption__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(storage_encryption__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
|
|
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router/esm/react-router.js");
|
|
|
|
|
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router-dom/esm/react-router-dom.js");
|
|
|
|
|
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router/esm/react-router.js");
|
|
|
|
|
/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router-dom/esm/react-router-dom.js");
|
|
|
|
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils */ "./resources/js/utils.ts");
|
|
|
|
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
|
|
|
|
|
|
|
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
|
|
@ -36255,6 +36100,7 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var app = document.getElementById('app');
|
|
|
|
|
var word = "shikiryu"; // FIXME should be in db and ≠ between users
|
|
|
|
|
|
|
|
|
@ -36286,7 +36132,7 @@ function App() {
|
|
|
|
|
passphrase = _React$useState4[0],
|
|
|
|
|
setPassphrase = _React$useState4[1];
|
|
|
|
|
|
|
|
|
|
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useHistory)();
|
|
|
|
|
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_6__.useHistory)();
|
|
|
|
|
|
|
|
|
|
var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_3__.useState(checkPassphrase()),
|
|
|
|
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
|
|
@ -36298,6 +36144,15 @@ function App() {
|
|
|
|
|
error = _React$useState8[0],
|
|
|
|
|
isError = _React$useState8[1];
|
|
|
|
|
|
|
|
|
|
var _React$useState9 = react__WEBPACK_IMPORTED_MODULE_3__.useState((0,_utils__WEBPACK_IMPORTED_MODULE_5__.isAllLoadedLocally)(pages)),
|
|
|
|
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
|
|
|
allLoaded = _React$useState10[0],
|
|
|
|
|
setAllLoaded = _React$useState10[1];
|
|
|
|
|
|
|
|
|
|
var loadPages = react__WEBPACK_IMPORTED_MODULE_3__.useRef(function () {
|
|
|
|
|
return;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var signin = function signin(cb) {
|
|
|
|
|
var isAuthenticated = checkPassphrase();
|
|
|
|
|
setUser(isAuthenticated);
|
|
|
|
@ -36337,17 +36192,30 @@ function App() {
|
|
|
|
|
|
|
|
|
|
var Error = function Error() {
|
|
|
|
|
if (error) {
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
|
|
|
severity: "error"
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_7__["default"], null, "Erreur"), "La phrase de passe ne correspond pas.");
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_8__["default"], null, "Erreur"), "La phrase de passe ne correspond pas.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", null);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var LoadButton = function LoadButton() {
|
|
|
|
|
return allLoaded ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react__WEBPACK_IMPORTED_MODULE_3__.Fragment, null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
|
|
variant: "outlined",
|
|
|
|
|
size: "small",
|
|
|
|
|
sx: {
|
|
|
|
|
align: "right"
|
|
|
|
|
},
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
return loadPages.current();
|
|
|
|
|
}
|
|
|
|
|
}, "Charger les pages localement");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var AuthButton = function AuthButton() {
|
|
|
|
|
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useHistory)();
|
|
|
|
|
return user ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("p", null, "Bienvenue !", " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
|
|
|
var history = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_6__.useHistory)();
|
|
|
|
|
return user ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("p", null, "Bienvenue !", " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
|
|
variant: "outlined",
|
|
|
|
|
size: "small",
|
|
|
|
|
sx: {
|
|
|
|
@ -36358,7 +36226,7 @@ function App() {
|
|
|
|
|
return history.push("/diary/public");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, "Fermer mon carnet \xE0 clef")) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("p", null, "Votre carnet est ferm\xE9.", " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_9__.Link, {
|
|
|
|
|
}, "Fermer mon carnet \xE0 clef")) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("p", null, "Votre carnet est ferm\xE9.", " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_10__.Link, {
|
|
|
|
|
to: "/diary/public/pages"
|
|
|
|
|
}, "Voir vos pages"));
|
|
|
|
|
};
|
|
|
|
@ -36383,10 +36251,10 @@ function App() {
|
|
|
|
|
var children = _a.children,
|
|
|
|
|
rest = __rest(_a, ["children"]);
|
|
|
|
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Route, Object.assign({}, rest, {
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_6__.Route, Object.assign({}, rest, {
|
|
|
|
|
render: function render(_ref) {
|
|
|
|
|
var location = _ref.location;
|
|
|
|
|
return user ? children : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Redirect, {
|
|
|
|
|
return user ? children : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_6__.Redirect, {
|
|
|
|
|
to: {
|
|
|
|
|
pathname: "/diary/public/pass",
|
|
|
|
|
state: {
|
|
|
|
@ -36412,10 +36280,11 @@ function App() {
|
|
|
|
|
pages: listPages,
|
|
|
|
|
url: getPageContentUrl,
|
|
|
|
|
passphrase: passphrase,
|
|
|
|
|
setPassphrase: setPassphrase,
|
|
|
|
|
csrf: csrf,
|
|
|
|
|
removeUrl: removeUrl
|
|
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_10__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Form__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
|
|
|
|
removeUrl: removeUrl,
|
|
|
|
|
loadPages: loadPages,
|
|
|
|
|
setAllLoaded: setAllLoaded
|
|
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_11__["default"], null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Form__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
|
|
|
|
setListPages: setListPages,
|
|
|
|
|
csrf: csrf,
|
|
|
|
|
url: postUrl,
|
|
|
|
@ -36423,20 +36292,20 @@ function App() {
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(AuthButton, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(Error, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(AuthButton, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(LoadButton, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(Error, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
|
|
|
|
sx: {
|
|
|
|
|
height: "20px",
|
|
|
|
|
mb: "20px",
|
|
|
|
|
mt: "10px"
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Switch, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Route, {
|
|
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_6__.Switch, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_6__.Route, {
|
|
|
|
|
path: "/diary/public/pass"
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(PromptPage, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(PrivateRoute, {
|
|
|
|
|
path: "/diary/public/pages"
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(ListPage, null))));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.withRouter)(App));
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,react_router_dom__WEBPACK_IMPORTED_MODULE_6__.withRouter)(App));
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
@ -36587,7 +36456,7 @@ function PageForm(_ref) {
|
|
|
|
|
|
|
|
|
|
var onSubmit = function onSubmit(event) {
|
|
|
|
|
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
|
|
|
|
var HTMLForm, decryptedFormData, encryptedFormData, _iterator, _step, _step$value, key, value, newEncryptedString, response, json, uuid, _iterator2, _step2, _key, _newEncryptedString;
|
|
|
|
|
var HTMLForm, decryptedFormData, encryptedFormData, _iterator, _step, _step$value, key, value, newEncryptedString, response, json, uuid, _iterator2, _step2, _key, _newEncryptedString, savedDate, oSavedDate;
|
|
|
|
|
|
|
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) {
|
|
|
|
@ -36650,10 +36519,14 @@ function PageForm(_ref) {
|
|
|
|
|
|
|
|
|
|
if (json.success) {
|
|
|
|
|
HTMLForm.reset();
|
|
|
|
|
savedDate = json.date;
|
|
|
|
|
oSavedDate = new Date();
|
|
|
|
|
oSavedDate.setFullYear(savedDate.substring(0, 4), savedDate.substring(4, 6), savedDate.substring(6, 8));
|
|
|
|
|
oSavedDate.setHours(savedDate.substring(9, 11), savedDate.substring(11, 13), savedDate.substring(13, 15));
|
|
|
|
|
setListPages(function (previousList) {
|
|
|
|
|
return [{
|
|
|
|
|
id: uuid,
|
|
|
|
|
date: json.date,
|
|
|
|
|
date: oSavedDate.toLocaleString(),
|
|
|
|
|
title: decryptedFormData.get("title"),
|
|
|
|
|
content: decryptedFormData.get("text")
|
|
|
|
|
}].concat(_toConsumableArray(previousList));
|
|
|
|
@ -36711,10 +36584,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
|
|
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Grid/Grid.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Pagination/Pagination.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Grid/Grid.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Pagination/Pagination.js");
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
/* harmony import */ var _Page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Page */ "./resources/js/components/pages/Page.tsx");
|
|
|
|
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ "./resources/js/utils.ts");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
|
|
@ -36764,6 +36638,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Pages(_ref) {
|
|
|
|
|
var _this = this;
|
|
|
|
|
|
|
|
|
@ -36772,7 +36647,8 @@ function Pages(_ref) {
|
|
|
|
|
removeUrl = _ref.removeUrl,
|
|
|
|
|
csrf = _ref.csrf,
|
|
|
|
|
passphrase = _ref.passphrase,
|
|
|
|
|
setPassphrase = _ref.setPassphrase;
|
|
|
|
|
loadPages = _ref.loadPages,
|
|
|
|
|
setAllLoaded = _ref.setAllLoaded;
|
|
|
|
|
var isPassphraseSet = passphrase !== null;
|
|
|
|
|
var perPage = 3;
|
|
|
|
|
var total = pages.length;
|
|
|
|
@ -36826,7 +36702,6 @@ function Pages(_ref) {
|
|
|
|
|
page: page,
|
|
|
|
|
url: url,
|
|
|
|
|
remove: removePage,
|
|
|
|
|
setPassphrase: setPassphrase,
|
|
|
|
|
passphrase: passphrase,
|
|
|
|
|
key: page.id
|
|
|
|
|
});
|
|
|
|
@ -36847,7 +36722,6 @@ function Pages(_ref) {
|
|
|
|
|
page: page,
|
|
|
|
|
url: url,
|
|
|
|
|
remove: removePage,
|
|
|
|
|
setPassphrase: setPassphrase,
|
|
|
|
|
passphrase: passphrase,
|
|
|
|
|
key: page.id
|
|
|
|
|
});
|
|
|
|
@ -36863,19 +36737,74 @@ function Pages(_ref) {
|
|
|
|
|
page: page,
|
|
|
|
|
url: url,
|
|
|
|
|
remove: removePage,
|
|
|
|
|
setPassphrase: setPassphrase,
|
|
|
|
|
passphrase: passphrase,
|
|
|
|
|
key: page.id
|
|
|
|
|
});
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var loadAllPages = function loadAllPages() {
|
|
|
|
|
listPages.map(function (page) {
|
|
|
|
|
loadPage(page).then(function (r) {
|
|
|
|
|
setAllLoaded((0,_utils__WEBPACK_IMPORTED_MODULE_3__.isAllLoadedLocally)(listPages));
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function loadPage(page) {
|
|
|
|
|
return __awaiter(this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2() {
|
|
|
|
|
var response, json;
|
|
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) {
|
|
|
|
|
switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (!(localStorage.getItem(page.id + "text") === null)) {
|
|
|
|
|
_context2.next = 11;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_context2.next = 3;
|
|
|
|
|
return fetch(url.replace("replace_me", page.id));
|
|
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
|
response = _context2.sent;
|
|
|
|
|
_context2.next = 6;
|
|
|
|
|
return response.json();
|
|
|
|
|
|
|
|
|
|
case 6:
|
|
|
|
|
json = _context2.sent;
|
|
|
|
|
localStorage.setItem(page.id + "title", json.metadata.title);
|
|
|
|
|
localStorage.setItem(page.id + "text", json.content);
|
|
|
|
|
updateListPages([]);
|
|
|
|
|
updateListPages(listPages.slice((currentPage - 1) * perPage, (currentPage - 1) * perPage + perPage).map(function (page) {
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Page__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
|
|
|
page: page,
|
|
|
|
|
url: url,
|
|
|
|
|
remove: removePage,
|
|
|
|
|
passphrase: passphrase,
|
|
|
|
|
key: page.id
|
|
|
|
|
});
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
case 11:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
react__WEBPACK_IMPORTED_MODULE_1__.useEffect(function () {
|
|
|
|
|
loadPages.current = loadAllPages;
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
if (isPassphraseSet) {
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
|
|
|
container: true,
|
|
|
|
|
rowSpacing: 1,
|
|
|
|
|
columnSpacing: 1
|
|
|
|
|
}, listPagesDisplayed), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
|
|
|
}, listPagesDisplayed), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
|
|
|
count: numberOfPage,
|
|
|
|
|
page: currentPage,
|
|
|
|
|
onChange: handlePageChange,
|
|
|
|
@ -36900,27 +36829,24 @@ function Pages(_ref) {
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
/* harmony export */ "default": () => (/* binding */ Page)
|
|
|
|
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
|
|
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/IconButton/IconButton.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Alert/Alert.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/AlertTitle/AlertTitle.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Grid/Grid.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Card/Card.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/CardHeader/CardHeader.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Collapse/Collapse.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/CardActions/CardActions.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/CardContent/CardContent.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Typography/Typography.js");
|
|
|
|
|
/* harmony import */ var _mui_icons_material_MoreVert__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mui/icons-material/MoreVert */ "./node_modules/@mui/icons-material/MoreVert.js");
|
|
|
|
|
/* harmony import */ var _mui_material_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/material/styles */ "./node_modules/@mui/material/styles/styled.js");
|
|
|
|
|
/* harmony import */ var _mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @mui/icons-material/ExpandMore */ "./node_modules/@mui/icons-material/ExpandMore.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/IconButton/IconButton.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Grid/Grid.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Card/Card.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/CardHeader/CardHeader.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Collapse/Collapse.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/CardContent/CardContent.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/Alert/Alert.js");
|
|
|
|
|
/* harmony import */ var _mui_material__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mui/material */ "./node_modules/@mui/material/AlertTitle/AlertTitle.js");
|
|
|
|
|
/* harmony import */ var _mui_icons_material_MoreVert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mui/icons-material/MoreVert */ "./node_modules/@mui/icons-material/MoreVert.js");
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
|
|
|
/* harmony import */ var storage_encryption__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! storage-encryption */ "./node_modules/storage-encryption/build/index.js");
|
|
|
|
|
/* harmony import */ var storage_encryption__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(storage_encryption__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
|
|
/* harmony import */ var _mui_icons_material__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mui/icons-material */ "./node_modules/@mui/icons-material/esm/Delete.js");
|
|
|
|
|
/* harmony import */ var _mui_icons_material__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mui/icons-material */ "./node_modules/@mui/icons-material/esm/Download.js");
|
|
|
|
|
/* harmony import */ var _mui_icons_material__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mui/icons-material */ "./node_modules/@mui/icons-material/esm/Delete.js");
|
|
|
|
|
/* harmony import */ var _uiw_react_md_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @uiw/react-md-editor */ "./node_modules/@uiw/react-md-editor/esm/index.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -36968,18 +36894,6 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
|
|
var t = {};
|
|
|
|
|
|
|
|
|
|
for (var p in s) {
|
|
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
|
|
}
|
|
|
|
|
return t;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -36987,174 +36901,128 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ExpandMore = (0,_mui_material_styles__WEBPACK_IMPORTED_MODULE_4__["default"])(function (props) {
|
|
|
|
|
var expand = props.expand,
|
|
|
|
|
other = __rest(props, ["expand"]);
|
|
|
|
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__["default"], Object.assign({}, other));
|
|
|
|
|
})(function (_ref) {
|
|
|
|
|
var theme = _ref.theme,
|
|
|
|
|
expand = _ref.expand;
|
|
|
|
|
return {
|
|
|
|
|
transform: !expand ? 'rotate(0deg)' : 'rotate(180deg)',
|
|
|
|
|
marginLeft: 'auto',
|
|
|
|
|
transition: theme.transitions.create('transform', {
|
|
|
|
|
duration: theme.transitions.duration.shortest
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
function Page(_ref2) {
|
|
|
|
|
var Page = function Page(_ref) {
|
|
|
|
|
var _this = this;
|
|
|
|
|
|
|
|
|
|
var page = _ref2.page,
|
|
|
|
|
url = _ref2.url,
|
|
|
|
|
passphrase = _ref2.passphrase,
|
|
|
|
|
setPassphrase = _ref2.setPassphrase,
|
|
|
|
|
remove = _ref2.remove;
|
|
|
|
|
var page = _ref.page,
|
|
|
|
|
url = _ref.url,
|
|
|
|
|
passphrase = _ref.passphrase,
|
|
|
|
|
remove = _ref.remove;
|
|
|
|
|
|
|
|
|
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__.useState(false),
|
|
|
|
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
|
|
|
more = _React$useState2[0],
|
|
|
|
|
setMore = _React$useState2[1];
|
|
|
|
|
|
|
|
|
|
var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_1__.useState(false),
|
|
|
|
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
|
|
|
expanded = _React$useState4[0],
|
|
|
|
|
setExpanded = _React$useState4[1];
|
|
|
|
|
|
|
|
|
|
var handleMoreClick = function handleMoreClick() {
|
|
|
|
|
setMore(!more);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var handleExpandClick = function handleExpandClick() {
|
|
|
|
|
onLoad().then(function (r) {
|
|
|
|
|
return setExpanded(!expanded);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var encryptStorage = new storage_encryption__WEBPACK_IMPORTED_MODULE_2__.EncryptStorage(passphrase);
|
|
|
|
|
var title,
|
|
|
|
|
content = "";
|
|
|
|
|
var alert_popup = null;
|
|
|
|
|
var setTitle,
|
|
|
|
|
setContent = null;
|
|
|
|
|
|
|
|
|
|
var onLoad = function onLoad() {
|
|
|
|
|
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
|
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) {
|
|
|
|
|
switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_1__.useState(encryptStorage.decrypt(page.id + "text"));
|
|
|
|
|
var _React$useState3 = react__WEBPACK_IMPORTED_MODULE_1__.useState(encryptStorage.decrypt(page.id + "title")),
|
|
|
|
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
|
|
|
title = _React$useState4[0],
|
|
|
|
|
setTitle = _React$useState4[1];
|
|
|
|
|
|
|
|
|
|
var _React$useState6 = _slicedToArray(_React$useState5, 2);
|
|
|
|
|
var _React$useState5 = react__WEBPACK_IMPORTED_MODULE_1__.useState(encryptStorage.decrypt(page.id + "text")),
|
|
|
|
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
|
|
|
content = _React$useState6[0],
|
|
|
|
|
setContent = _React$useState6[1];
|
|
|
|
|
|
|
|
|
|
content = _React$useState6[0];
|
|
|
|
|
setContent = _React$useState6[1];
|
|
|
|
|
|
|
|
|
|
var _React$useState7 = react__WEBPACK_IMPORTED_MODULE_1__.useState(encryptStorage.decrypt(page.id + "title"));
|
|
|
|
|
|
|
|
|
|
var _React$useState8 = _slicedToArray(_React$useState7, 2);
|
|
|
|
|
|
|
|
|
|
title = _React$useState8[0];
|
|
|
|
|
setTitle = _React$useState8[1];
|
|
|
|
|
|
|
|
|
|
onLoad = function onLoad() {
|
|
|
|
|
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee2() {
|
|
|
|
|
var onLoad = function onLoad() {
|
|
|
|
|
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
|
|
|
|
|
var response, json;
|
|
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee2$(_context2) {
|
|
|
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) {
|
|
|
|
|
switch (_context2.prev = _context2.next) {
|
|
|
|
|
switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
if (!(localStorage.getItem(page.id + "text") === null)) {
|
|
|
|
|
_context2.next = 9;
|
|
|
|
|
_context.next = 9;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_context2.next = 3;
|
|
|
|
|
_context.next = 3;
|
|
|
|
|
return fetch(url.replace("replace_me", page.id));
|
|
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
|
response = _context2.sent;
|
|
|
|
|
_context2.next = 6;
|
|
|
|
|
response = _context.sent;
|
|
|
|
|
_context.next = 6;
|
|
|
|
|
return response.json();
|
|
|
|
|
|
|
|
|
|
case 6:
|
|
|
|
|
json = _context2.sent;
|
|
|
|
|
json = _context.sent;
|
|
|
|
|
localStorage.setItem(page.id + "title", json.metadata.title);
|
|
|
|
|
localStorage.setItem(page.id + "text", json.content);
|
|
|
|
|
|
|
|
|
|
case 9:
|
|
|
|
|
setTitle(encryptStorage.decrypt(page.id + "title")); // @ts-ignore
|
|
|
|
|
|
|
|
|
|
setTitle(encryptStorage.decrypt(page.id + "title"));
|
|
|
|
|
setContent(encryptStorage.decrypt(page.id + "text"));
|
|
|
|
|
|
|
|
|
|
case 11:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}, _callee);
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var icons;
|
|
|
|
|
|
|
|
|
|
if (content === null || content === "") {
|
|
|
|
|
icons = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
|
|
|
"aria-label": "load",
|
|
|
|
|
onClick: onLoad
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_icons_material__WEBPACK_IMPORTED_MODULE_5__["default"], null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
|
|
|
"aria-label": "settings",
|
|
|
|
|
onClick: handleMoreClick
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_icons_material_MoreVert__WEBPACK_IMPORTED_MODULE_6__["default"], null)));
|
|
|
|
|
} else {
|
|
|
|
|
icons = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
|
|
|
"aria-label": "settings",
|
|
|
|
|
onClick: handleMoreClick
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_icons_material_MoreVert__WEBPACK_IMPORTED_MODULE_6__["default"], null));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
|
|
|
item: true,
|
|
|
|
|
xs: 12,
|
|
|
|
|
sm: 12,
|
|
|
|
|
md: 12,
|
|
|
|
|
id: page.id
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_8__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
|
|
|
|
action: icons,
|
|
|
|
|
title: title,
|
|
|
|
|
subheader: page.date
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
|
|
|
|
"in": more,
|
|
|
|
|
timeout: "auto",
|
|
|
|
|
unmountOnExit: true
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
|
|
|
"aria-label": "remove",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
remove(page.id);
|
|
|
|
|
}
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_icons_material__WEBPACK_IMPORTED_MODULE_11__["default"], null)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_12__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_uiw_react_md_editor__WEBPACK_IMPORTED_MODULE_3__["default"].Markdown, {
|
|
|
|
|
source: content
|
|
|
|
|
}))));
|
|
|
|
|
} catch (e) {
|
|
|
|
|
console.error(e);
|
|
|
|
|
setPassphrase(null);
|
|
|
|
|
alert_popup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
|
|
|
item: true,
|
|
|
|
|
xs: 12,
|
|
|
|
|
sm: 12,
|
|
|
|
|
md: 12,
|
|
|
|
|
id: page.id
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_13__["default"], {
|
|
|
|
|
severity: "error"
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_7__["default"], null, "Erreur"), "Vos pages ne peuvent pas \xEAtre d\xE9cod\xE9es \u2014 ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("strong", null, "R\xE9indiquez votre clef!"));
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_14__["default"], null, "Erreur"), "Cette page ne peut pas \xEAtre d\xE9cod\xE9e \u2014 ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("strong", null, "R\xE9indiquez votre clef!")));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_8__["default"], {
|
|
|
|
|
item: true,
|
|
|
|
|
xs: 12,
|
|
|
|
|
sm: 12,
|
|
|
|
|
md: 12,
|
|
|
|
|
id: page.id
|
|
|
|
|
}, alert_popup, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_9__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_10__["default"], {
|
|
|
|
|
action: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
|
|
|
"aria-label": "settings",
|
|
|
|
|
onClick: handleMoreClick
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_icons_material_MoreVert__WEBPACK_IMPORTED_MODULE_11__["default"], null)),
|
|
|
|
|
title: title,
|
|
|
|
|
subheader: page.date
|
|
|
|
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_12__["default"], {
|
|
|
|
|
"in": more,
|
|
|
|
|
timeout: "auto",
|
|
|
|
|
unmountOnExit: true
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
|
|
|
"aria-label": "remove",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
remove(page.id);
|
|
|
|
|
}
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_icons_material__WEBPACK_IMPORTED_MODULE_13__["default"], null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_14__["default"], {
|
|
|
|
|
disableSpacing: true
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(ExpandMore, {
|
|
|
|
|
expand: expanded,
|
|
|
|
|
onClick: handleExpandClick,
|
|
|
|
|
"aria-expanded": expanded,
|
|
|
|
|
"aria-label": "show more"
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_icons_material_ExpandMore__WEBPACK_IMPORTED_MODULE_15__["default"], null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_12__["default"], {
|
|
|
|
|
"in": expanded,
|
|
|
|
|
timeout: "auto",
|
|
|
|
|
unmountOnExit: true
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_16__["default"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_mui_material__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
|
|
|
|
paragraph: true
|
|
|
|
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_uiw_react_md_editor__WEBPACK_IMPORTED_MODULE_3__["default"].Markdown, {
|
|
|
|
|
source: content
|
|
|
|
|
}))))));
|
|
|
|
|
}
|
|
|
|
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(Page));
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
@ -37556,6 +37424,33 @@ function MobileMenu(_ref) {
|
|
|
|
|
}))))));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./resources/js/utils.ts":
|
|
|
|
|
/*!*******************************!*\
|
|
|
|
|
!*** ./resources/js/utils.ts ***!
|
|
|
|
|
\*******************************/
|
|
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
/* harmony export */ "isAllLoadedLocally": () => (/* binding */ isAllLoadedLocally)
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
var isAllLoadedLocally = function isAllLoadedLocally(pages) {
|
|
|
|
|
for (var i in pages) {
|
|
|
|
|
var page = pages[i];
|
|
|
|
|
|
|
|
|
|
if (localStorage.getItem(page.id + "title") === null) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "./resources/js/bootstrap.js":
|
|
|
|
|