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oD,YAAA,SAAYH,GACR,MAAO,CACHpB,IAAAA,UAAiB,CACbZ,UAAW,WAAmB,UAATgC,EAAmB,gBAAkB,IAC1DK,QAAS,kBAAMvC,EAAEmC,MAAMK,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,wBAEX,EACDC,KAAM,eACP3E,IAAAA,WAAe2C,MAAM,yCACxBI,IAAAA,UAAiB,CACbZ,UAAW,WAAmB,YAATgC,EAAqB,gBAAkB,IAC5DK,QAAS,kBAAMvC,EAAEmC,MAAMK,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,sBACJP,KAAM,YAEb,EACDQ,KAAM,wBACP3E,IAAAA,WAAe2C,MAAM,2CACxBI,IAAAA,UAAiB,CACbZ,UAAW,WAAmB,WAATgC,EAAoB,gBAAkB,IAC3DK,QAAS,kBAAMvC,EAAEmC,MAAMK,IACnBzE,IAAAA,MAAU,YAAa,CACnB0E,GAAI,sBACJP,KAAM,WAEb,EACDQ,KAAM,oBACP3E,IAAAA,WAAe2C,MAAM,0CAEhC,EAACzB,EAGDqD,YAAA,SAAYJ,GACR,MAAY,WAARA,EACOlC,EAAC6B,EAAW,MACJ,UAARK,EACAlC,EAAC8B,EAAU,MAEf9B,EAACnB,EAAS,KACrB,EAACkD,CAAA,CA9D4B,CAASY,KCJ1C5E,IAAAA,aAAiBC,IAAI,8BAA8B,WACjDD,IAAAA,cAAiB,IACV,uBACJ6E,aAAab,EAClB,G","sources":["webpack://@foskym/flarum-oauth-center/webpack/bootstrap","webpack://@foskym/flarum-oauth-center/webpack/runtime/compat get default export","webpack://@foskym/flarum-oauth-center/webpack/runtime/define property getters","webpack://@foskym/flarum-oauth-center/webpack/runtime/hasOwnProperty shorthand","webpack://@foskym/flarum-oauth-center/webpack/runtime/make namespace object","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/app']\"","webpack://@foskym/flarum-oauth-center/./src/common/index.ts","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['admin/app']\"","webpack://@foskym/flarum-oauth-center/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@foskym/flarum-oauth-center/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['admin/components/ExtensionPage']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/Button']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/Page']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/FieldSet']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['admin/utils/saveSettings']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/utils/Stream']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/Select']\"","webpack://@foskym/flarum-oauth-center/external root \"flarum.core.compat['common/components/Switch']\"","webpack://@foskym/flarum-oauth-center/./src/admin/pages/IndexPage.js","webpack://@foskym/flarum-oauth-center/./src/admin/pages/ClientsPage.js","webpack://@foskym/flarum-oauth-center/./src/admin/pages/ScopesPage.js","webpack://@foskym/flarum-oauth-center/./src/admin/components/SettingsPage.js","webpack://@foskym/flarum-oauth-center/./src/admin/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/app'];","import app from 'flarum/common/app';\n\napp.initializers.add('foskym/flarum-oauth-center', () => {\n console.log('[foskym/flarum-oauth-center] Hello, forum and admin!');\n});\n","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/app'];","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/components/ExtensionPage'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Button'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Page'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/FieldSet'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['admin/utils/saveSettings'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/utils/Stream'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Select'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/components/Switch'];","import app from 'flarum/admin/app';\r\nimport Page from 'flarum/common/components/Page';\r\nimport FieldSet from 'flarum/common/components/FieldSet';\r\nimport Button from 'flarum/common/components/Button';\r\nimport saveSettings from 'flarum/admin/utils/saveSettings';\r\nimport Stream from 'flarum/common/utils/Stream';\r\nimport Select from 'flarum/common/components/Select';\r\nimport Switch from 'flarum/common/components/Switch';\r\n\r\nexport default class IndexPage extends Page {\r\n oninit(vnode) {\r\n super.oninit(vnode);\r\n\r\n this.saving = false;\r\n\r\n this.fields = [\r\n 'foskym-oauth-center.access_lifetime',\r\n 'foskym-oauth-center.allow_implicit',\r\n 'foskym-oauth-center.enforce_state',\r\n 'foskym-oauth-center.require_exact_redirect_uri'\r\n ];\r\n this.values = {};\r\n\r\n const settings = app.data.settings;\r\n this.fields.forEach(key => this.values[key] = Stream(settings[key] || \"\"));\r\n\r\n for (let i = 1; i < this.fields.length; i++) {\r\n this.values[this.fields[i]] = settings[this.fields[i]] === '1';\r\n }\r\n }\r\n\r\n view() {\r\n return (\r\n <div>\r\n <form onsubmit={this.onsubmit.bind(this)} className=\"BasicsPage\">\r\n {FieldSet.component({}, [\r\n <div style=\"height: 5px;\"></div>,\r\n Switch.component({\r\n state: this.values['foskym-oauth-center.allow_implicit'],\r\n onchange: (value) => this.saveSingleSetting('foskym-oauth-center.allow_implicit', value),\r\n loading: this.saving,\r\n }, app.translator.trans('foskym-oauth-center.admin.settings.allow_implicit')),\r\n ])}\r\n\r\n {FieldSet.component({}, [\r\n <div style=\"height: 5px;\"></div>,\r\n Switch.component({\r\n state: this.values['foskym-oauth-center.enforce_state'],\r\n onchange: (value) => this.saveSingleSetting('foskym-oauth-center.enforce_state', value),\r\n loading: this.saving,\r\n }, app.translator.trans('foskym-oauth-center.admin.settings.enforce_state')),\r\n ])}\r\n\r\n {FieldSet.component({}, [\r\n <div style=\"height: 5px;\"></div>,\r\n Switch.component({\r\n state: this.values['foskym-oauth-center.require_exact_redirect_uri'],\r\n onchange: (value) => this.saveSingleSetting('foskym-oauth-center.require_exact_redirect_uri', value),\r\n loading: this.saving,\r\n }, app.translator.trans('foskym-oauth-center.admin.settings.require_exact_redirect_uri')),\r\n ])}\r\n <hr/>\r\n {FieldSet.component({}, [\r\n <input className=\"FormControl\" bidi={this.values['foskym-oauth-center.access_lifetime']}\r\n placeholder={app.translator.trans('foskym-oauth-center.admin.settings.access_lifetime')} required/>,\r\n <div className=\"helpText\">\r\n {app.translator.trans('foskym-oauth-center.admin.settings.access_lifetime')}\r\n </div>,\r\n Button.component({\r\n type: 'submit',\r\n className: 'Button Button--primary',\r\n loading: this.saving\r\n }, app.translator.trans('core.admin.settings.submit_button'))\r\n ])}\r\n\r\n </form>\r\n\r\n </div>\r\n );\r\n }\r\n\r\n saveSingleSetting(setting, value) {\r\n if (this.saving) return;\r\n\r\n this.saving = true;\r\n\r\n this.values[setting] = value;\r\n\r\n let data = {};\r\n data[setting] = value;\r\n\r\n saveSettings(data)\r\n .then(() => app.alerts.show({type: 'success'}, app.translator.trans('core.admin.settings.saved_message')))\r\n .catch(() => {\r\n })\r\n .then(() => {\r\n this.saving = false;\r\n m.redraw();\r\n });\r\n }\r\n\r\n onsubmit(e) {\r\n e.preventDefault();\r\n\r\n if (this.saving) return;\r\n\r\n this.saving = true;\r\n app.alerts.dismiss(this.successAlert);\r\n\r\n const settings = {};\r\n\r\n settings['foskym-oauth-center.access_lifetime'] = this.values['foskym-oauth-center.access_lifetime']();\r\n\r\n // this.fields.forEach(key => {\r\n // settings[key] = this.values[key]()\r\n //\r\n // });\r\n\r\n if (settings['foskym-oauth-center.access_lifetime'] === \"\") {\r\n settings['foskym-oauth-center.access_lifetime'] = 3600;\r\n }\r\n\r\n saveSettings(settings)\r\n .then(() => app.alerts.show({type: 'success'}, app.translator.trans('core.admin.settings.saved_message')))\r\n .catch(() => {\r\n })\r\n .then(() => {\r\n this.saving = false;\r\n m.redraw();\r\n });\r\n }\r\n}\r\n","import Page from 'flarum/common/components/Page';\r\n\r\nexport default class ClientsPage extends Page {\r\n view() {\r\n return (\r\n <div>\r\n <h2>Clients Page</h2>\r\n </div>\r\n );\r\n }\r\n}\r\n","import Page from 'flarum/common/components/Page';\r\n\r\nexport default class ScopesPage extends Page {\r\n view() {\r\n return (\r\n <div>\r\n <h2>Scopes Page</h2>\r\n </div>\r\n );\r\n }\r\n}\r\n","import app from 'flarum/admin/app';\r\nimport ExtensionPage from 'flarum/admin/components/ExtensionPage';\r\nimport Button from 'flarum/common/components/Button';\r\nimport IndexPage from \"../pages/IndexPage\";\r\nimport ClientsPage from \"../pages/ClientsPage\";\r\nimport ScopesPage from \"../pages/ScopesPage\";\r\nexport default class SettingsPage extends ExtensionPage {\r\n content() {\r\n const page = m.route.param().page || 'index';\r\n\r\n return (\r\n <div className=\"ExtensionPage-settings OAuthCenter\">\r\n <div className={\"oauth-menu\"}>\r\n <div className={\"container\"}>\r\n {this.menuButtons(page)}\r\n </div>\r\n </div>\r\n\r\n <div className=\"container OAuthCenterPage-container\">\r\n {this.pageContent(page)}\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n // Return button menus\r\n menuButtons(page) {\r\n return [\r\n Button.component({\r\n className: `Button ${page === 'index' ? 'item-selected' : ''}`,\r\n onclick: () => m.route.set(\r\n app.route('extension', {\r\n id: 'foskym-oauth-center'\r\n })\r\n ),\r\n icon: 'fas fa-home',\r\n }, app.translator.trans('foskym-oauth-center.admin.page.index')),\r\n Button.component({\r\n className: `Button ${page === 'clients' ? 'item-selected' : ''}`,\r\n onclick: () => m.route.set(\r\n app.route('extension', {\r\n id: 'foskym-oauth-center',\r\n page: 'clients'\r\n })\r\n ),\r\n icon: 'fas fa-network-wired',\r\n }, app.translator.trans('foskym-oauth-center.admin.page.clients')),\r\n Button.component({\r\n className: `Button ${page === 'scopes' ? 'item-selected' : ''}`,\r\n onclick: () => m.route.set(\r\n app.route('extension', {\r\n id: 'foskym-oauth-center',\r\n page: 'scopes'\r\n })\r\n ),\r\n icon: 'fas fa-user-lock',\r\n }, app.translator.trans('foskym-oauth-center.admin.page.scopes')),\r\n ];\r\n }\r\n\r\n\r\n pageContent(page) {\r\n if (page == 'clients') {\r\n return <ClientsPage />\r\n } else if (page == 'scopes') {\r\n return <ScopesPage />\r\n }\r\n return <IndexPage />\r\n }\r\n}\r\n","import app from 'flarum/admin/app';\nimport SettingsPage from './components/SettingsPage';\napp.initializers.add('foskym/flarum-oauth-center', () => {\n app.extensionData\n .for('foskym-oauth-center')\n .registerPage(SettingsPage);\n});\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","flarum","core","compat","app","add","console","log","_setPrototypeOf","p","setPrototypeOf","bind","__proto__","_inheritsLoose","subClass","superClass","create","constructor","IndexPage","_Page","apply","arguments","_proto","oninit","vnode","_this","this","saving","fields","values","settings","forEach","Stream","i","length","view","_this2","m","onsubmit","className","FieldSet","style","Switch","state","onchange","saveSingleSetting","loading","trans","bidi","placeholder","required","Button","type","setting","_this3","data","saveSettings","then","show","redraw","e","_this4","preventDefault","dismiss","successAlert","Page","ClientsPage","ScopesPage","SettingsPage","_ExtensionPage","content","page","route","param","menuButtons","pageContent","onclick","set","id","icon","ExtensionPage","registerPage"],"sourceRoot":""} |