META-INF.resources.static.js.main.9c7fccb2.chunk.js.map Maven / Gradle / Ivy
{"version":3,"sources":["logo.svg","components/ApplicationForm.js","components/ApplicationViewer.js","app/FormAction.js","app/FormActionType.js","App.js","serviceWorker.js","app/FormStrore.js","app/FormReducer.js","config/Axios.config.js","index.js"],"names":["module","exports","__webpack_require__","p","FormItem","es_form","Item","DEFAULT_STATE","clientId","name","redirectUri","scope","redirectUriInputValue","redirectUriInputVisible","scopeInputValue","scopeInputVisible","_ObjectIsEmpty","obj","Object","keys","length","ApplicationForm","props","_this","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","handleOkButtonOnClick","form","validateFields","err","values","params","redirect_uri","state","axios","put","concat","then","res","refreshApplications","catch","error","post","close","setState","handleCancelButtonOnClick","handleNameOnChange","e","target","value","handleTagConfirm","tags","tag","afterEvent","arguments","undefined","indexOf","toConsumableArray","handleRedirectUriConfirm","handleScopeConfirm","handleRedirectUriRemove","index","handleTagsRemove","handleScopeRemove","renderTags","options","handleClose","color","map","isLongTag","tagElem","react_default","a","createElement","es_tag","key","closable","onClose","slice","tooltip","title","visible","application","client_id","array","splice","_this2","formItemLayout","labelCol","xs","span","sm","wrapperCol","getFieldDecorator","_this$state","modal","onOk","onCancel","onSubmit","handleSubmit","assign","label","rules","required","message","input","onChange","placeholder","extra","type","size","style","width","onBlur","onPressEnter","onClick","background","borderStyle","icon","React","Component","defaultProps","WrappedForm","create","mapPropsToFields","createFormField","ApplicationViewer","url","window","open","focus","footer","es_button","ApplicationViewer_FormItem","lib","onCopy","info","text","className","raw_client_secret","_authentication","App","_getApplications","get","withCredentials","changeOrigin","applications","data","handleEditButtonOnClick","handleCreateButtonOnClick","handleDeleteButtonOnClick","delete","handleShowButtonOnClick","viewerVisible","columns","dataIndex","render","record","bind","assertThisInitialized","divider","popconfirm","onConfirm","okText","cancelText","row","col","src","logo","alt","table","rowKey","dataSource","components_ApplicationForm","ApplicationViewer_ApplicationViewer","connect","objectSpread","FormAction","Boolean","location","hostname","match","store","createStore","interceptors","request","use","config","path","startsWith","response","ReactDOM","es","src_App_0","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"6EAAAA,EAAAC,QAAiBC,EAAAC,EAAuB,0lBCGlCC,EAAWC,EAAA,EAAKC,KAChBC,EAAgB,CACpBC,SAAU,KACVC,KAAM,KACNC,YAAa,GACbC,MAAO,GACPC,sBAAuB,GACvBC,yBAAyB,EACzBC,gBAAiB,GACjBC,mBAAmB,GAEfC,EAAiB,SAACC,GACtB,OAAmC,IAA5BC,OAAOC,KAAKF,GAAKG,QAEpBC,cAOJ,SAAAA,EAAYC,GAAM,IAAAC,EAAA,OAAAL,OAAAM,EAAA,EAAAN,CAAAO,KAAAJ,IAChBE,EAAAL,OAAAQ,EAAA,EAAAR,CAAAO,KAAAP,OAAAS,EAAA,EAAAT,CAAAG,GAAAO,KAAAH,KAAMH,KAIRO,sBAAwB,WACtBN,EAAKD,MAAMQ,KAAKC,eAAe,SAACC,EAAKC,GACnC,IAAKD,EAAK,CACR,IAAME,EAAS,CACbzB,KAAMwB,EAAOxB,KACb0B,aAAcZ,EAAKa,MAAM1B,YACzBC,MAAOY,EAAKa,MAAMzB,OAEjBY,EAAKa,MAAM5B,SACZ6B,IAAMC,IAAN,iBAAAC,OAA2BhB,EAAKa,MAAM5B,UAAY0B,GAAQM,KAAK,SAACC,GAC9DlB,EAAKD,MAAMoB,wBACVC,MAAM,SAAAC,MAITP,IAAMQ,KAAK,gBAAiBX,GAAQM,KAAK,SAACC,GACxClB,EAAKD,MAAMoB,wBACVC,MAAM,SAAAC,MAKXrB,EAAKD,MAAMwB,MAAM,IACjBvB,EAAKwB,SAASxC,OA5BFgB,EAiClByB,0BAA4B,WAC1BzB,EAAKD,MAAMwB,MAAM,IACjBvB,EAAKwB,SAASxC,IAnCEgB,EAsClB0B,mBAAqB,SAACC,GACpB3B,EAAKwB,SAAS,CAACtC,KAAMyC,EAAEC,OAAOC,SAvCd7B,EA0DlB8B,iBAAmB,SAAC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,IAAAD,UAAA,IAAAA,UAAA,GACrC,QADqCA,UAAArC,OAAA,EAAAqC,UAAA,QAAAC,GACvBsD,MACV,IJFa,QIGT,MAAO,CAAE5B,SAAS,GACtB,IJLY,OIMR,MAAO,CAAEA,SAAS,GACtB,QACI,MAAO,CAAEA,SAAS,MCL9B/C,IAAMsJ,aAAaC,QAAQC,IAAI,SAASC,GACtC,IAAMC,EAAOD,EAAO5D,IAAI8D,WAAW,KAAOF,EAAO5D,IAApC,IAAA3F,OAA8CuJ,EAAO5D,KAE5DA,EAAG,GAAA3F,OADI,IACJA,OAAawJ,GAEtB,OADAD,EAAO5D,IAAMA,EACN4D,IAITzJ,IAAMsJ,aAAaM,SAASJ,IAAI,SAASC,GACvC,OAAOA,ICLTI,IAASnC,OACLrF,EAAAC,EAAAC,cAACuH,EAAA,EAAD,CAAUV,MAAOA,GAAO/G,EAAAC,EAAAC,cAACwH,EAAD,OAAoBC,SAASC,eAAe,SJwHlE,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMjK,KAAK,SAAAkK,GACjCA,EAAaC","file":"static/js/main.9c7fccb2.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/logo.7f4accb6.svg\";","import React from 'react';\nimport { Modal, Form, Input, Tag, Tooltip, Icon } from 'antd';\nimport axios from 'axios';\nconst FormItem = Form.Item;\nconst DEFAULT_STATE = {\n clientId: null,\n name: null,\n redirectUri: [],\n scope: [],\n redirectUriInputValue: '',\n redirectUriInputVisible: false,\n scopeInputValue: '',\n scopeInputVisible: false\n}\nconst _ObjectIsEmpty = (obj) => {\n return Object.keys(obj).length === 0\n}\nclass ApplicationForm extends React.Component {\n\n static defaultProps = {\n application: {},\n visible: false\n }\n\n constructor(props){\n super(props)\n this.state = DEFAULT_STATE\n }\n\n handleOkButtonOnClick = () => {\n this.props.form.validateFields((err, values) => {\n if (!err) {\n const params = {\n name: values.name,\n redirect_uri: this.state.redirectUri,\n scope: this.state.scope\n }\n if(this.state.clientId){\n axios.put(`/applications/${this.state.clientId}`, params).then((res) => {\n this.props.refreshApplications();\n }).catch(error => {\n \n })\n }else{\n axios.post('/applications', params).then((res) => {\n this.props.refreshApplications();\n }).catch(error => {\n \n })\n }\n \n this.props.close({})\n this.setState(DEFAULT_STATE)\n }\n });\n }\n\n handleCancelButtonOnClick = () => {\n this.props.close({})\n this.setState(DEFAULT_STATE)\n }\n\n handleNameOnChange = (e) => {\n this.setState({name: e.target.value})\n }\n\n componentWillReceiveProps(props){\n if(props.visible){\n const clientId = _ObjectIsEmpty(props.application) ? null : props.application.client_id\n const name = _ObjectIsEmpty(props.application) ? null : props.application.name\n const redirectUri = _ObjectIsEmpty(props.application) ? [] : props.application.redirect_uri\n const scope = _ObjectIsEmpty(props.application) ? [] : props.application.scope\n this.setState({\n clientId,\n name: name,\n redirectUri,\n scope: scope\n })\n }\n }\n\n \n handleTagConfirm = (tags, tag,afterEvent = () => {}) => {\n if (tag && tags.indexOf(tag) === -1) {\n tags = [...tags, tag];\n }\n afterEvent(tags)\n }\n\n handleRedirectUriConfirm = () => {\n this.handleTagConfirm(this.state.redirectUri, this.state.redirectUriInputValue, (tags) => {\n this.setState({\n redirectUri: tags,\n redirectUriInputValue: '',\n redirectUriInputVisible: false\n })\n })\n }\n\n handleScopeConfirm = () => {\n this.handleTagConfirm(this.state.scope, this.state.scopeInputValue, (tags) => {\n this.setState({\n scope: tags,\n scopeInputValue: '',\n scopeInputVisible: false\n })\n })\n }\n\n handleTagsRemove(index, array, afterEvent){\n array.splice(index, 1)\n afterEvent(array)\n }\n\n handleRedirectUriRemove = (index, tag) => {\n this.handleTagsRemove(index, this.state.redirectUri, (redirectUri) => {\n this.setState({redirectUri})\n })\n }\n\n handleScopeRemove = (index, tag) => {\n this.handleTagsRemove(index, this.state.scope, (scope) => {\n debugger\n this.setState({scope})\n })\n }\n\n renderTags = (tags, options = {}) => {\n options.handleClose = options.handleClose || ((index, tag) => {})\n options.color = options.color || 'cyan'\n return tags.map((tag, index) => {\n const isLongTag = tag.length > 30;\n const tagElem = (\n { options.handleClose(index, tag) }}>\n {isLongTag ? `${tag.slice(0, 30)}...` : tag}\n \n );\n return isLongTag ? {tagElem} : tagElem;\n })\n }\n\n render() {\n const visible = this.props.visible\n const title = Object.keys(this.props.application).length === 0 ? 'Create' : \"Update\";\n const formItemLayout = {\n labelCol: {\n xs: { span: 24 },\n sm: { span: 6 },\n },\n wrapperCol: {\n xs: { span: 24 },\n sm: { span: 18 },\n },\n };\n const { getFieldDecorator } = this.props.form;\n const {redirectUriInputValue, redirectUriInputVisible, scopeInputVisible, scopeInputValue} = this.state\n return (\n \n \n \n \n \n )\n }\n}\nconst WrappedForm = Form.create({\n mapPropsToFields(props){\n return {\n name: Form.createFormField({\n value: props.application.name,\n })\n }\n }\n})(ApplicationForm);\nexport default WrappedForm","import React from 'react';\nimport { Modal, Button, Form, Tag, Tooltip, Icon, message } from 'antd';\nimport {CopyToClipboard} from 'react-copy-to-clipboard';\nconst FormItem = Form.Item;\nexport default class ApplicationViewer extends React.Component {\n\n _authentication(redirect_uri){\n\n var url = `/oauth/authorize?client_id=${this.props.application.client_id}&redirect_uri=${redirect_uri}&response_type=code`\n var win = window.open(url, '_blank');\n win.focus();\n }\n\n render() {\n const formItemLayout = {\n labelCol: {\n xs: { span: 24 },\n sm: { span: 4 },\n },\n wrapperCol: {\n xs: { span: 24 },\n sm: { span: 20 },\n },\n };\n return (\n OK\n ]\n }\n width={750}\n >\n \n \n )\n }\n}","import * as FormActionTypes from './FormActionType';\nexport const open = () => {\n return {\n type: FormActionTypes.OPEN\n }\n}\n\nexport const close = () => {\n return {\n type: FormActionTypes.CLOSE\n }\n}","export const OPEN = \"open\"\nexport const CLOSE = \"close\"","import React, { Component } from 'react';\nimport logo from './logo.svg';\nimport { Button, Table, Divider, Tag, Row, Col, Popconfirm } from 'antd';\nimport axios from 'axios';\nimport './App.scss';\nimport ApplicationForm from './components/ApplicationForm';\nimport ApplicationViewer from './components/ApplicationViewer';\nimport * as FormAction from './app/FormAction';\nimport { connect } from 'react-redux';\nclass App extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n applications: [],\n application: {},\n viewerVisible: false\n }\n }\n\n componentWillMount() {\n this._getApplications();\n }\n\n _getApplications = () => {\n axios.get('/applications', { withCredentials: true, changeOrigin: true }).then((applications => {\n this.setState({ applications: applications.data })\n })).catch((error) => {\n\n });\n }\n\n handleEditButtonOnClick = (application) => {\n this.setState({application})\n this.props.open();\n }\n\n handleCreateButtonOnClick = (application) => {\n this.setState({application: {}})\n this.props.open();\n }\n\n handleDeleteButtonOnClick = (application) => {\n axios.delete(`/applications/${application.client_id}`).then(() => {\n this._getApplications()\n }).catch(error => {\n\n })\n }\n\n handleShowButtonOnClick = (application) => {\n this.setState({\n viewerVisible: true,\n application\n })\n }\n\n columns = [{\n title: 'Client ID',\n dataIndex: 'client_id',\n key: 'client_id'\n }, {\n title: 'Application Name',\n dataIndex: 'name',\n key: 'name',\n render: text => {text},\n }, {\n title: 'Scopes',\n key: 'scope',\n dataIndex: 'scope',\n render: tags => (\n \n {tags.map(tag => {tag} )}\n \n ),\n }, {\n title: 'Action',\n key: 'action',\n render: (text, record) => (\n \n \n \n \n \n {}} okText=\"Yes\" cancelText=\"No\">\n \n \n \n ),\n }];\n\n render() {\n return (\n \n \n \n \n WatchDog\n \n \n \n \n
\n \n
\n \n { this.props.close({}) }} />\n {this.setState({viewerVisible: false})}} visible={this.state.viewerVisible} application={this.state.application} />\n \n );\n }\n}\n\nconst formStateToProps = state => ({\n ...state\n})\n\nexport default connect(formStateToProps, FormAction)(App);\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read http://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit http://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See http://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import { createStore } from 'redux'\nimport formReducer from './FormReducer'\n\nconst store = createStore(formReducer)\nexport default store","import * as FormActionTypes from './FormActionType';\nexport default (options = {}, action) => {\n switch(action.type) {\n case FormActionTypes.CLOSE:\n return { visible: false }\n case FormActionTypes.OPEN:\n return { visible: true }\n default:\n return { visible: false }\n }\n}","import axios from 'axios';\n\n//拦截请求\naxios.interceptors.request.use(function(config){\n const path = config.url.startsWith('/') ? config.url : `/${config.url}`\n const host = ''\n const url = `${host}${path}`\n config.url = url;\n return config\n})\n\n//拦截响应\naxios.interceptors.response.use(function(config){\n return config\n})","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\nimport store from './app/FormStrore';\nimport { Provider } from 'react-redux';\nimport './config/Axios.config';\nReactDOM.render(\n , document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: http://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy