PageSourceSearch

https://www.shareschool.ac.kr/js/front/board/board-post-list.app.js?version=5.51.0

js shareschool.ac.kr collected 2026-09-24 14:24:05 UTC 5,592 bytes, 1 lines download raw bytes

1webpackJsonp([110],{2799:function(t,e,r){t.exports=r(2800)},2800:function(t,e,r){"use strict";var a=r(0);var o=_(a);var n=r(9);var s=_(n);var i=r(1);var l=r(11);var d=_(l);var u=r(14);var f=_(u);r(13);var c=r(2801);var p=_(c);function _(t){return t&&t.__esModule?t:{default:t}}r(12);var v=document.getElementById("root");if(v){var h={user_info:v.dataset?v.dataset.user_info:(0,f.default)(v,"user_info"),board_id:v.dataset?v.dataset.board_id:(0,f.default)(v,"board_id"),is_catalog_admin:v.dataset?v.dataset.is_catalog_admin:(0,f.default)(v,"is_catalog_admin"),locale:v.dataset?v.dataset.locale:(0,f.default)(v,"locale")};s.default.render(o.default.createElement(i.I18nextProvider,{i18n:d.default},o.default.createElement(p.default,h)),v)}},2801:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(t,a.key,a)}}return function(e,r,a){if(r)t(e.prototype,r);if(a)t(e,a);return e}}();var o=r(0);var n=g(o);var s=r(1);r(2802);var i=r(5);var l=h(i);var d=r(7);var u=h(d);var f=r(6);var c=r(430);var p=g(c);var _=r(317);var v=g(_);function h(t){if(t&&t.__esModule){return t}else{var e={};if(t!=null){for(var r in t){if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}}e.default=t;return e}}function g(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function b(t,e){if(!t){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e&&(typeof e==="object"||typeof e==="function")?e:t}function P(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof e)}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}});if(e)Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e}var x=function(t){P(e,t);function e(t){m(this,e);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));var a=r.props.user_info?JSON.parse(r.props.user_info):null;r.state={userInfo:a,boardSettings:null};return r}a(e,[{key:"componentDidMount",value:function t(){this.getBoardSettings()}},{key:"getBoardSettings",value:function t(){var e=this;var r=this.props.t;l.getBoardSettings(this.props.board_id).then(function(t){return t.json()}).then(function(t){e.setState({boardSettings:t})}).catch(function(t){console.log(t);alert(r("FrontBoardPostList:FailedToFetchBoardSettings"))})}},{key:"onClickNewPost",value:function t(){var e=this.props.t;var r=u.checkBoardPermission(this.state.boardSettings.post_write_perm,this.state.userInfo);if(r.result||this.props.is_catalog_admin=="1"){var a=MIX_APP_URL+"/boards/"+this.props.board_id+"/posts/create";location.href=a}else{if(r.needLogin){if(confirm(e("FrontBoardPostList:ConfirmGoToLoginPage"))){var o=MIX_APP_URL+"/login";location.href=o}}else{alert(e("FrontBoardPostList:AlertNoPermission"))}}}},{key:"getPermisionErrorString",value:function t(){var e=this.props.t;if(!!this.state.boardSettings){if(this.state.boardSettings.post_list_view_perm===f.PostListViewPerm.MEMBER&&!this.state.userInfo.user_login){return e("FrontBoardPostList:NeedLoginAccessPostsData")}else if(this.state.boardSettings.post_list_view_perm===f.PostListViewPerm.ADMIN&&!this.state.userInfo.is_admin){return e("FrontBoardPostList:CannotAccessPostsData")}}}},{key:"render",value:function t(){var e=this;var r=this.props.t;if(!!this.state.boardSettings&&(this.state.boardSettings.post_list_view_perm===f.PostListViewPerm.MEMBER&&!this.state.userInfo.user_login||this.state.boardSettings.post_list_view_perm===f.PostListViewPerm.ADMIN&&!this.state.userInfo.is_admin))return n.default.createElement("div",{className:"xn_error_container"},n.default.createElement("div",{className:"xn_nodata_img"}),n.default.createElement("div",{className:"xn_nodata_info"},this.getPermisionErrorString()));return n.default.createElement("div",{id:"xn-front-bpard-post-list"},n.default.createElement(v.default,{boardSettings:this.state.boardSettings}),this.state.boardSettings&&n.default.createElement(p.default,{userInfo:this.state.userInfo,boardId:this.props.board_id,boardSettings:this.state.boardSettings,isCatalogAdmin:this.props.is_catalog_admin,onClickNewPost:function t(){return e.onClickNewPost()},isManager:false}))}}]);return e}(n.default.Component);e.default=(0,s.withTranslation)(["Common","FrontBoardPostList"])(x)},2802:function(t,e,r){var a=r(2803);if(typeof a==="string")a=[[t.i,a,""]];var o;var n={};n.transform=o;var s=r(3)(a,n);if(a.locals)t.exports=a.locals;if(false){if(!a.locals){t.hot.accept("!!../../../../../../../../../node_modules/css-loader/index.js!../../../../../../../../../node_modules/sass-loader/lib/loader.js!./index.scss",function(){var e=require("!!../../../../../../../../../node_modules/css-loader/index.js!../../../../../../../../../node_modules/sass-loader/lib/loader.js!./index.scss");if(typeof e==="string")e=[[t.id,e,""]];s(e)})}t.hot.dispose(function(){s()})}},2803:function(t,e,r){e=t.exports=r(2)(false);e.push([t.i,"#xn-front-bpard-post-list .xn-manager-search-container{display:flex;align-items:center;height:40px;margin:0 0 10px}#xn-front-bpard-post-list .xn-manager-search-container .xnbpl-search-container button,#xn-front-bpard-post-list .xn-manager-search-container .xnbpl-search-container input,#xn-front-bpard-post-list .xn-manager-search-container .xnbpl-select select{height:40px}",""])}},[2799]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.