Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- webpackJsonp([2, 0], [function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- var r = a(30),
- s = n(r),
- i = a(11),
- o = n(i),
- u = a(494);
- a(229);
- var l = a(237),
- c = n(l),
- d = a(16),
- f = n(d),
- h = a(410),
- p = n(h);
- (0, u.sync)(f["default"], c["default"]);
- var m = new o["default"]((0, s["default"])({
- router: c["default"],
- store: f["default"]
- }, p["default"]));
- m.$mount("#app"), window.app = m
- }, , , , , , , , function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function r(t, e, a) {
- (0, f["default"])((0, c["default"])({}, t, e), a)
- }
- function s() {
- var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
- e = arguments[1];
- r({
- type: "error",
- title: "Oops...",
- text: "Something went wrong. Please try again.",
- confirmButtonText: "OK",
- html: !0
- }, t, e)
- }
- function i(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- r({
- type: "success",
- title: "Efectuat",
- text: "Actiunea a fost efectuata cu succes.",
- confirmButtonText: "OK",
- html: !0
- }, e, t)
- }
- function o(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- r({
- type: "warning",
- title: "Confirmă acțiunea",
- text: "Ești sigur că vrei să faci asta?",
- showCancelButton: !0,
- confirmButtonColor: "#e52c5a",
- confirmButtonText: "Da",
- cancelButtonText: "Nu",
- showLoaderOnConfirm: !0,
- html: !0
- }, e, t)
- }
- function u(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- r({
- timer: 2500,
- title: "404",
- type: "warning",
- showConfirmButton: !0,
- text: "Pagina nu a fost găsită."
- }, e, function() {
- f["default"].close(), t && t()
- })
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var l = a(12),
- c = n(l);
- e.oops = s, e.success = i, e.confirm = o, e.missing = u;
- var d = a(404),
- f = n(d)
- }, , , , , , , , function(t, e, a) {
- "use strict";
- function n(t) {
- if (t && t.__esModule) return t;
- var e = {};
- if (null != t)
- for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
- return e["default"] = t, e
- }
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var s = a(11),
- i = r(s),
- o = a(39),
- u = r(o),
- l = a(245),
- c = n(l),
- d = a(246),
- f = n(d),
- h = a(247),
- p = r(h);
- i["default"].use(u["default"]), e["default"] = new u["default"].Store({
- actions: c,
- getters: f,
- modules: {
- auth: p["default"]
- }
- })
- }, , , , , , , , , , , , , function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- data: function() {
- return {
- queryResults: {}
- }
- },
- methods: {
- runQuery: function(t) {
- var e = this;
- this.queryResults = {}, !t.query, t.post("/query").then(function(t) {
- var a = t.data;
- e.queryResults = a, e.form.successful = !1
- })
- }
- }
- }
- }, , , , , , , , , , , function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.DataTableMixin = e.DataTable = void 0;
- var r = a(450),
- s = n(r),
- i = a(236),
- o = n(i);
- e.DataTable = s["default"], e.DataTableMixin = o["default"], e["default"] = s["default"]
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(42),
- s = n(r),
- i = {
- bus: null,
- install: function(t) {
- this.bus = new t, t.prototype.$event = this
- },
- emit: function(t) {
- for (var e, a = arguments.length, n = Array(a > 1 ? a - 1 : 0), r = 1; r < a; r++) n[r - 1] = arguments[r];
- return (e = this.bus).$emit.apply(e, [t].concat(n)), this
- },
- on: function() {
- var t = this,
- e = arguments;
- return 2 === arguments.length ? this.bus.$on(arguments[0], arguments[1]) : (0, s["default"])(arguments[0]).forEach(function(a) {
- t.bus.$on(a, e[0][a])
- }), this
- }
- };
- e["default"] = i
- }, , , , , , , , , , , , , , , , , function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function r(t) {
- var e = (0, i["default"])(t);
- return '<span title="' + e.format(u) + '">' + e.format(o) + "</span>"
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = r;
- var s = a(1),
- i = n(s),
- o = "MMM D, YYYY",
- u = "MMM D, YYYY @ HH:mm"
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- e.LOGOUT = "LOGOUT", e.SAVE_TOKEN = "SAVE_TOKEN", e.FETCH_USER = "FETCH_USER", e.FETCH_USER_SUCCESS = "FETCH_USER_SUCCESS", e.FETCH_USER_FAILURE = "FETCH_USER_FAILURE"
- }, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(39),
- s = a(413),
- i = n(s);
- e["default"] = {
- components: {
- Navbar: i["default"]
- },
- computed: (0, r.mapGetters)({
- user: "authUser",
- authenticated: "authCheck"
- }),
- data: function() {
- return {
- title: null,
- loading: !0,
- preventStopLoading: !1,
- appName: "BD App"
- }
- },
- created: function() {
- var t = this;
- this.setDocTitle(), this.$event.on({
- "loading.start": function(e) {
- e && void 0 !== e.preventStop && (t.preventStopLoading = !0), t.loading = !0
- },
- "loading.done": function(e) {
- e && void 0 !== e.preventStop && (t.preventStopLoading = !1), t.preventStopLoading || (t.loading = !1)
- }
- })
- },
- methods: {
- pageTitle: function(t) {
- this.title = t, this.setDocTitle()
- },
- setDocTitle: function() {
- this.$route.title && (this.title = this.$route.title), document.title = this.title ? this.title + " - " + this.appName : this.appName
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(42),
- s = n(r);
- e["default"] = {
- data: function() {
- return {
- chapter: {},
- chart: null
- }
- },
- created: function() {
- this.$event.emit("loading.start"), this.fetchStats()
- },
- methods: {
- fetchStats: function() {
- var t = this;
- return this.$http.get("/chapters/" + this.$route.params.id + "?rate=true").then(function(e) {
- var a = e.data;
- t.chapter = a, t.buildChart(), t.$root.loading = !1
- })
- },
- buildChart: function() {
- var t = this,
- e = [];
- (0, s["default"])(this.chapter.not_solved_stats).map(function(a) {
- return e.push({
- x: a,
- y: t.chapter.not_solved_stats[a]
- })
- });
- var a = [];
- (0, s["default"])(this.chapter.solved_stats).map(function(e) {
- return a.push({
- x: e,
- y: t.chapter.solved_stats[e]
- })
- }), this.chart = [{
- label: "Rezolvate",
- color: "#26A69A",
- data: a
- }, {
- label: "Nerezolvate",
- color: "#EF5350",
- data: e
- }]
- },
- getSolveRate: function() {
- try {
- var t = 100 * this.chapter.solve_rate.solved / this.chapter.solve_rate.asked;
- if (isNaN(t)) throw new Error;
- return Math.floor(t)
- } catch (e) {
- return 0
- }
- },
- getUserSolveRate: function() {
- try {
- var t = 100 * this.chapter.questions_solved.count / this.chapter.questions_answered.count;
- if (isNaN(t)) throw new Error;
- return Math.floor(t)
- } catch (e) {
- return 0
- }
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- data: function() {
- return {
- form: this.$form({
- username: "",
- password: "",
- remember: !1
- })
- }
- },
- mounted: function() {
- this.$root.loading = !1, this.$root.pageTitle("Autentificare"), this.$refs.username.focus()
- },
- methods: {
- login: function() {
- var t = this;
- this.form.post("/login").then(function(e) {
- var a = e.data;
- t.$event.emit("loading.start"), t.$store.dispatch("saveToken", {
- token: a.token,
- remember: t.form.remember
- }), t.$router.push("/")
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(30),
- s = n(r),
- i = a(39),
- o = a(416),
- u = n(o);
- e["default"] = {
- components: {
- AdminMenu: u["default"]
- },
- computed: (0, s["default"])({}, (0, i.mapGetters)({
- user: "authUser",
- authenticated: "authCheck"
- }), {
- admin: function() {
- return this.$route.name && this.$route.name.startsWith("admin")
- }
- }),
- methods: {
- logout: function() {
- this.$store.dispatch("logout"), this.$router.push("/login")
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(29),
- s = n(r),
- i = a(8);
- e["default"] = {
- mixins: [s["default"]],
- data: function() {
- return {
- question: null,
- chapter: null,
- evaluate: null,
- correctResults: {},
- canRunTest: !1,
- form: this.$form({
- query: ""
- })
- }
- },
- created: function() {
- var t = this;
- this.$event.emit("loading.start", {
- preventStop: !0
- }), this.fetchChapter().then(function() {
- return t.fetchQuestion()
- })
- },
- methods: {
- fetchChapter: function() {
- var t = this;
- return this.$http.get("/chapters/" + this.$route.params.id + "?questions_count=true").then(function(e) {
- var a = e.data;
- return t.chapter = a
- })["catch"](function() {
- return (0, i.missing)(function() {
- return t.$router.push({
- name: "dashboard"
- })
- })
- })
- },
- fetchQuestion: function() {
- var t = this;
- this.$http.get("/quiz/" + this.$route.params.id).then(function(e) {
- var a = e.body;
- t.question = a, t.canRunTest = !0
- })["catch"](function(e) {
- var a = e.status;
- 403 === a ? (0, i.missing)(function() {
- return t.$router.push({
- name: "user.questions"
- })
- }, {
- text: "Trebuie să adaugi o întrebare pentru a continua!"
- }) : 401 !== a && (0, i.missing)(function() {
- return t.$router.push({
- name: "dashboard"
- })
- }, {
- text: "Nu mai exista întrebari pentru acest capitol."
- })
- }).then(function() {
- return t.$event.emit("loading.done", {
- preventStop: !1
- })
- })
- },
- save: function() {
- var t = this;
- this.form.post("/quiz/" + this.question.id).then(function(e) {
- var a = e.body;
- t.evaluate = a, t.queryResults = {}, t.canRunTest = !1
- })
- },
- next: function() {
- var t = this;
- this.$event.emit("loading.start", {
- preventStop: !0
- }), this.clear(), this.fetchChapter().then(function() {
- return t.fetchQuestion()
- })
- },
- clear: function() {
- this.evaluate = null, this.correctResults = {}, this.queryResults = {}, this.form.reset()
- },
- viewResults: function() {
- this.queryResults = this.evaluate.userSet, this.correctResults = this.evaluate.correctSet
- },
- report: function() {
- var t = this;
- return this.question.report_resolved ? (0, i.oops)({
- text: "Această întrebare a fost aprobată de un administrator și nu mai poate fi raportată."
- }) : void(0, i.confirm)(function() {
- t.$http.post("/quiz/report/" + t.question.id).then(function() {
- return (0, i.success)(t.next())
- })["catch"](function() {
- return (0, i.oops)({
- text: "Nu poti raporta o intrebare la care nu ai răspuns, sau pe care ai mai raportat-o."
- })
- })
- }, {
- text: "Ești sigur că vrei să raportezi intrebarea ?"
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var n = a(8);
- e["default"] = {
- created: function() {
- this.$root.pageTitle("Administrare")
- },
- methods: {
- reevaluate: function() {
- var t = this;
- (0, n.confirm)(function() {
- t.$event.emit("loading.start"), t.$http.get("/admin/reevaluate").then(function(e) {
- var a = e.data;
- return (0, n.success)(function() {
- return t.$event.emit("loading.done")
- }, {
- text: a.total + " intrebari au fost reevaluate."
- })
- })["catch"](function() {
- (0, n.oops)({
- text: "Eroare. Te rog incearca din nou."
- })
- })
- })
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- data: function() {
- return {
- tables: [],
- form: this.$form({
- query: ""
- })
- }
- },
- created: function() {
- this.$root.pageTitle("Tabele"), this.$event.emit("loading.start"), this.fetch()
- },
- methods: {
- fetch: function() {
- var t = this;
- this.$http.get("/admin/tables").then(function(e) {
- var a = e.data;
- return t.tables = a
- })
- },
- drop: function(t) {
- var e = this;
- this.$http["delete"]("/admin/tables/" + t.name).then(function() {
- return e.tables.splice(e.tables.indexOf(t), 1)
- })
- },
- grant: function(t) {
- this.update(t, !0)
- },
- revoke: function(t) {
- this.update(t, !1)
- },
- update: function(t, e) {
- this.$http.patch("/admin/tables/" + t.name, {
- granted: e
- }).then(function() {
- return t.granted = e
- })
- },
- store: function() {
- var t = this;
- this.form.post("/admin/tables").then(function() {
- t.fetch(), t.form.reset(), t.form.clear()
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(3),
- s = n(r);
- e["default"] = {
- data: function() {
- return {
- form: this.$form({
- name: "",
- description: "",
- color: "#" + Math.floor(16777215 * Math.random()).toString(16)
- })
- }
- },
- mounted: function() {
- var t = this;
- (0, s["default"])(this.$refs.modal).modal("show").on("shown.bs.modal", function() {
- return t.$refs.name.focus()
- }).on("hidden.bs.modal", function() {
- return t.$router.push("/admin/chapters")
- })
- },
- beforeDestroy: function() {
- (0, s["default"])(this.$refs.modal).modal("hide")
- },
- methods: {
- save: function() {
- var t = this;
- this.form.post("/admin/chapters").then(function(e) {
- var a = e.data;
- t.$event.emit("chapter.added", {
- chapter: a
- }), (0, s["default"])(t.$refs.modal).modal("hide")
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(3),
- s = n(r);
- e["default"] = {
- props: ["chapters"],
- data: function() {
- return {
- form: this.$form({
- name: "",
- description: "",
- color: ""
- })
- }
- },
- mounted: function() {
- var t = this;
- this.fetchCategory(), (0, s["default"])(this.$refs.modal).on("hidden.bs.modal", function() {
- return t.$router.push("/admin/chapters")
- })
- },
- beforeDestroy: function() {
- (0, s["default"])(this.$refs.modal).modal("hide")
- },
- methods: {
- save: function() {
- var t = this;
- this.form.patch("/admin/chapters/" + this.$route.params.id).then(function(e) {
- var a = e.data;
- t.$event.emit("chapter.updated", {
- chapter: a
- }), (0, s["default"])(t.$refs.modal).modal("hide")
- })
- },
- fetchCategory: function() {
- var t = this;
- this.$http.get("/admin/chapters/" + this.$route.params.id).then(function(e) {
- var a = e.data;
- t.form.name = a.name, t.form.description = a.description, t.form.color = a.color, (0, s["default"])(t.$refs.modal).modal("show")
- })["catch"](function() {
- return t.$router.push("/admin/chapters")
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(12),
- s = n(r),
- i = a(3),
- o = n(i),
- u = a(8);
- e["default"] = {
- data: function() {
- return {
- chapters: []
- }
- },
- created: function() {
- var t = this;
- this.$root.pageTitle("Capitole"), this.fetchChapters(), this.$event.on("chapter.added", function(e) {
- var a = e.chapter;
- t.chapters.push(a)
- }), this.$event.on("chapter.updated", function(e) {
- var a = e.chapter,
- n = t.chapters.find(function(t) {
- return t.id == a.id
- });
- (0, s["default"])(n, a)
- })
- },
- methods: {
- fetchChapters: function() {
- var t = this;
- this.$event.emit("loading.start"), this.$http.get("/admin/chapters").then(function(e) {
- var a = e.data;
- t.chapters = a, t.$nextTick(function() {
- return t.sortable()
- })
- })
- },
- destroy: function(t) {
- var e = this;
- (0, u.confirm)(function() {
- e.$http["delete"]("/admin/chapters/" + t.id).then(function() {
- return e.chapters.splice(e.chapters.indexOf(t), 1)
- })
- }, {
- text: "Ești sigur că vrei să ștergi capitolul <b>" + t.name + "</b>?"
- })
- },
- sortable: function() {
- var t = this;
- (0, o["default"])(this.$el).find("tbody").sortable({
- axis: "y",
- cursor: "move",
- handle: ".column-name",
- helper: function(t, e) {
- return e.children().each(function() {
- (0, o["default"])(this).width((0, o["default"])(this).width())
- }), e
- },
- update: function(e) {
- t.$http.post("/admin/chapters/order", {
- items: (0, o["default"])(e.target).sortable("toArray")
- })
- }
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(29),
- s = n(r);
- e["default"] = {
- mixins: [s["default"]],
- data: function() {
- return {
- chapters: [],
- form: this.$form({
- question: "",
- query: "",
- chapter: null
- })
- }
- },
- created: function() {
- this.$event.emit("loading.start"), this.fetchChapters()
- },
- methods: {
- fetchChapters: function() {
- var t = this;
- this.$http.get("/admin/chapters").then(function(e) {
- var a = e.data;
- return t.chapters = a
- })
- },
- save: function() {
- var t = this;
- this.form.post("/admin/questions").then(function(e) {
- e.data;
- t.form.query = "", t.form.question = "", t.queryResults = {}
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(29),
- s = n(r);
- e["default"] = {
- mixins: [s["default"]],
- data: function() {
- return {
- chapters: [],
- question: null,
- form: this.$form({
- question: "",
- query: null,
- chapter: null,
- report_resolved: !1
- })
- }
- },
- created: function() {
- var t = this;
- this.$event.emit("loading.start", {
- preventStop: !0
- }), this.fetchChapters().then(function() {
- return t.fetchQuestion()
- })
- },
- methods: {
- fetchChapters: function() {
- var t = this;
- return this.$http.get("/admin/chapters").then(function(e) {
- var a = e.data;
- return t.chapters = a
- })
- },
- fetchQuestion: function() {
- var t = this;
- this.$http.get("/admin/questions/" + this.$route.params.id).then(function(e) {
- var a = e.data;
- return t.fillForm(a)
- }).then(function() {
- return t.$event.emit("loading.done", {
- preventStop: !1
- })
- })
- },
- save: function() {
- var t = this;
- this.form.patch("/admin/questions/" + this.$route.params.id).then(function(e) {
- var a = e.data;
- return t.fillForm(a)
- })
- },
- fillForm: function(t) {
- this.question = t, this.form.query = t.answer, this.form.question = t.question, this.form.chapter = t.chapter_id, this.form.report_resolved = t.report_resolved
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(16),
- s = (n(r), a(58)),
- i = n(s),
- o = a(40),
- u = a(8),
- l = function(t, e, a) {
- return '<i class="fa fa-square m-r-xs" aria-hidden="true" style="color: ' + (a.chapter.color || "transparent") + ';"></i> ' + a.chapter.name
- };
- e["default"] = {
- mixins: [o.DataTableMixin],
- data: function() {
- return {
- url: "/api/admin/questions",
- params: {
- filter: "all"
- },
- columns: [{
- name: "chapter.name",
- data: "chapter.name",
- title: "Capitol",
- callback: l
- }, {
- name: "user.name",
- title: "Utilizator",
- callback: function(t, e, a) {
- return a.user ? a.user.name : ""
- }
- }, {
- name: "asked",
- data: "asked",
- title: "Întrebată"
- }, {
- name: "solved",
- data: "solved",
- title: "Rezolvată"
- }, {
- name: "created_at",
- data: "created_at",
- title: "Adăugată",
- callback: i["default"],
- searchable: !1
- }, "__actions"],
- itemActions: [{
- title: "Editează",
- icon: "fa fa-pencil",
- "class": "action action-primary",
- callback: [this, "edit"],
- link: [this, "editLink"]
- }, {
- title: "Șterge",
- icon: "fa fa-trash-o",
- "class": "action action-danger",
- callback: [this, "destroy"]
- }]
- }
- },
- created: function() {
- var t = this;
- this.$root.pageTitle("Întrebări"), this.addButtonDataTable(function() {
- t.$router.push({
- name: "admin.questions.create"
- })
- }, "Adaugă"), this.addFilterDataTable(function(e) {
- t.params.filter = e, t.refreshDataTable()
- })
- },
- methods: {
- edit: function(t) {
- var e = t.id;
- this.$router.push({
- name: "admin.questions.edit",
- params: {
- id: e
- }
- })
- },
- editLink: function(t) {
- var e = t.id;
- return "questions/" + e + "/edit"
- },
- destroy: function(t) {
- var e = this,
- a = t.id;
- (0, u.confirm)(function() {
- e.$http["delete"]("/admin/questions/" + a).then(function() {
- return e.refreshDataTable()
- })
- }, {
- text: "Ești sigur că vrei să ștergi această întrebare?"
- })
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- props: ["form"],
- created: function() {}
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- props: ["form"]
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(42),
- s = n(r),
- i = a(3),
- o = n(i),
- u = a(424),
- l = n(u),
- c = a(427),
- d = n(c),
- f = a(425),
- h = n(f);
- e["default"] = {
- components: {
- General: l["default"],
- Steps: d["default"],
- Reports: h["default"]
- },
- data: function() {
- return {
- form: this.$form()
- }
- },
- mounted: function() {
- var t = this;
- this.$root.pageTitle("Setări"), this.fetchSettings(), (0, o["default"])(this.$el).find(".nav-tabs a").on("click", function() {
- t.form.clear()
- })
- },
- methods: {
- fetchSettings: function() {
- var t = this;
- this.$event.emit("loading.start"), this.$http.get("/admin/settings").then(function(e) {
- var a = e.data;
- (0, s["default"])(a).forEach(function(e) {
- t.$set(t.form, e, a[e])
- })
- })
- },
- save: function() {
- this.form.patch("/admin/settings")
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var n = a(8);
- e["default"] = {
- props: ["value"],
- data: function() {
- return {
- form: this.$form({
- index: 0,
- step: 0
- })
- }
- },
- created: function() {},
- methods: {
- add: function() {
- var t = this.value.length ? this.value : [5];
- t.push(2 * t[t.length - 1]), this.update(t)
- },
- save: function() {
- this.form.clear();
- var t = this.value,
- e = parseInt(this.form.step),
- a = t[this.form.index - 1];
- e < 1 || a && e < a ? this.form.errors.set({
- step: "Numărul de întrebări trebuie sa fie cel puțin " + (a ? a + 1 : 1) + "."
- }) : (t[this.form.index] = e, this.update(t), $(this.$refs.modal).modal("hide"))
- },
- edit: function(t) {
- this.form.index = t >= 0 ? t : -1, this.form.step = this.value[t], $(this.$refs.modal).modal("show")
- },
- destroy: function(t) {
- var e = this;
- (0, n.confirm)(function() {
- var a = e.value;
- a.splice(t, 1), e.update(a)
- }, {
- text: "Ești sigur că vrei să ștergi pragul <b>#" + (t + 1) + "</b> ?"
- })
- },
- update: function(t) {
- this.$emit("input", t.slice(0)), this.$http.patch("/admin/settings", {
- steps: t
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(3),
- s = n(r);
- e["default"] = {
- data: function() {
- return {
- form: this.$form({
- name: "",
- username: "",
- password: "",
- user_role: "user"
- })
- }
- },
- mounted: function() {
- var t = this;
- (0, s["default"])(this.$refs.modal).modal("show").on("shown.bs.modal", function() {
- return t.$refs.name.focus()
- }).on("hidden.bs.modal", function() {
- return t.$router.push("/admin/users")
- })
- },
- beforeDestroy: function() {
- (0, s["default"])(this.$refs.modal).modal("hide")
- },
- methods: {
- save: function() {
- var t = this;
- this.form.post("/admin/users").then(function(e) {
- var a = e.data;
- t.$event.emit("user.added", {
- user: a
- }), (0, s["default"])(t.$refs.modal).modal("hide")
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(3),
- s = n(r);
- e["default"] = {
- data: function() {
- return {
- form: this.$form({
- name: "",
- username: "",
- password: "",
- user_role: "user"
- })
- }
- },
- mounted: function() {
- var t = this;
- this.fetchUser(), (0, s["default"])(this.$refs.modal).modal("show").on("hidden.bs.modal", function() {
- return t.$router.push("/admin/users")
- })
- },
- beforeDestroy: function() {
- (0, s["default"])(this.$refs.modal).modal("hide")
- },
- methods: {
- save: function() {
- var t = this;
- this.form.patch("/admin/users/" + this.$route.params.id).then(function(e) {
- var a = e.data;
- t.$event.emit("user.updated", {
- user: a
- }), (0, s["default"])(t.$refs.modal).modal("hide")
- })
- },
- fetchUser: function() {
- var t = this;
- this.$http.get("/admin/users/" + this.$route.params.id).then(function(e) {
- var a = e.data;
- t.form.name = a.name, t.form.user_role = a.user_role, t.form.username = a.username, (0, s["default"])(t.$refs.modal).modal("show")
- })["catch"](function() {
- return t.$router.push("/admin/users")
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(16),
- s = (n(r), a(58)),
- i = n(s),
- o = a(40),
- u = a(8);
- e["default"] = {
- mixins: [o.DataTableMixin],
- data: function() {
- return {
- columns: [{
- name: "name",
- data: "name",
- title: "Nume"
- }, {
- name: "username",
- data: "username",
- title: "Username"
- }, {
- name: "user_role",
- data: "user_role",
- title: "Rol"
- }, {
- name: "questions_count",
- data: "questions_count",
- title: "Întrebări postate",
- searchable: !1
- }, {
- name: "answers_count",
- data: "answers_count",
- title: "Întrebări răspunse",
- searchable: !1
- }, {
- name: "solved_answers_count",
- data: "solved_answers_count",
- title: "Întrebări rezolvate",
- searchable: !1
- }, {
- name: "created_at",
- data: "created_at",
- title: "Întregistrat",
- callback: i["default"]
- }, "__actions"],
- itemActions: [{
- title: "Răspunsuri",
- icon: "fa fa-eye",
- "class": "action action-primary",
- callback: [this, "view"]
- }, {
- title: "Editează",
- icon: "fa fa-pencil",
- "class": "action action-primary",
- callback: [this, "edit"]
- }, {
- title: "Șterge",
- icon: "fa fa-trash-o",
- "class": "action action-danger",
- callback: [this, "destroy"]
- }]
- }
- },
- created: function() {
- var t = this;
- this.$root.pageTitle("Utilizatori"), this.addButtonDataTable(function() {
- t.$router.push("/admin/users/create")
- }, "Adaugă"), this.$event.on("user.added", function() {
- return t.refreshDataTable()
- }), this.$event.on("user.updated", function() {
- return t.refreshDataTable()
- })
- },
- methods: {
- view: function(t) {
- var e = t.id;
- this.$router.push({
- name: "admin.users.chapters",
- params: {
- id: e
- }
- })
- },
- edit: function(t) {
- var e = t.id;
- this.$router.push({
- name: "admin.users.edit",
- params: {
- id: e
- }
- })
- },
- destroy: function(t) {
- var e = this,
- a = t.id,
- n = t.name;
- (0, u.confirm)(function() {
- e.$http["delete"]("/admin/users/" + a).then(function() {
- return e.refreshDataTable()
- })
- }, {
- text: "Ești sigur că vrei să ștergi utilizatorul <b>" + n + "</b>?"
- })
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- props: ["chapter"],
- computed: {
- description: function a() {
- for (var t = 10, e = 200, a = this.getNWords(this.chapter.description, t); a.length + 4 > e;) a = this.getNWords(this.chapter.description, --t);
- return this.getWordsCount(this.chapter.description) > t && (a += "..."), a
- }
- },
- methods: {
- getNWords: function(t, e) {
- return t.split(/\s+/).slice(0, e).join(" ")
- },
- getWordsCount: function(t) {
- return t.split(/\s+/).length
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- data: function() {
- return {
- user: {},
- chapters: []
- }
- },
- computed: {
- chapterName: function() {
- var t = this,
- e = this.chapters.find(function(e) {
- return e.id === +t.$route.params.cid
- });
- return e ? e.name : ""
- }
- },
- created: function() {
- this.$root.pageTitle("Dashboard"), this.$event.emit("loading.start", {
- preventStop: !0
- }), this.fetchUser(), this.fetchChapters()
- },
- methods: {
- fetchUser: function() {
- var t = this;
- return this.$http.get("/admin/users/" + this.$route.params.id).then(function(e) {
- var a = e.data;
- return t.user = a
- })
- },
- fetchChapters: function() {
- var t = this;
- return this.$http.get("/admin/users/" + this.$route.params.id + "/chapters").then(function(e) {
- var a = e.data;
- return t.chapters = a
- })
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- props: ["user", "chapters"],
- data: function() {
- return {
- answers: []
- }
- },
- created: function() {
- var t = this;
- this.$root.pageTitle("Dashboard"), this.fetchAnswers().then(function() {
- return t.$event.emit("loading.done", {
- preventStop: !1
- })
- })
- },
- methods: {
- fetchAnswers: function() {
- var t = this;
- return this.$event.emit("loading.start"), this.$http.get("/admin/users/" + this.$route.params.id + "/chapters/" + this.$route.params.cid + "/answers").then(function(e) {
- var a = e.data;
- return t.answers = a
- })
- },
- compare: function(t) {
- var e = this;
- this.$set(t, "loading", !0), this.$http.get("/admin/results/" + t.id).then(function(a) {
- var n = a.data;
- e.$set(t, "userSet", n.userSet), e.$set(t, "correctSet", n.correctSet)
- }).then(function() {
- return e.$set(t, "loading", !1)
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(431),
- s = n(r);
- e["default"] = {
- components: {
- ChapterCard: s["default"]
- },
- props: ["user", "chapters"],
- created: function() {
- this.$root.pageTitle("Dashboard"), this.$event.emit("loading.done", {
- preventStop: !1
- })
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(30),
- s = n(r),
- i = a(349),
- o = n(i),
- u = a(39);
- e["default"] = {
- props: {
- text: String
- },
- data: function() {
- return {
- ctx: null,
- font: "Roboto",
- fontSize: "16",
- lineHeight: 1.42
- }
- },
- computed: (0, s["default"])({}, (0, u.mapGetters)({
- authToken: "authToken"
- })),
- mounted: function() {
- this.$el.width = this.$el.parentNode.clientWidth, this.ctx = this.$el.getContext("2d"), this.draw(this.dText(), this.$el.width), this.definition = HTMLCanvasElement.prototype.toDataURL = function() {}, this.$el.addEventListener("contextmenu", this.context), window.addEventListener("resize", this.resize)
- },
- beforeDestroy: function() {
- HTMLCanvasElement.prototype.toDataURL = this.definition, this.$el.removeEventListener("contextmenu", this.context), window.removeEventListener("resize", this.resize)
- },
- methods: {
- dText: function() {
- var t = atob(this.text).split(":");
- var result = o["default"].enc.Utf8.stringify(o["default"].AES.decrypt(o["default"].lib.CipherParams.create({
- ciphertext: o["default"].enc.Base64.parse(t[0])
- }), o["default"].PBKDF2("0000", btoa(this.authToken), {
- keySize: 8,
- iterations: 1e3,
- hasher: o["default"].algo.SHA256
- }), {
- iv: o["default"].enc.Hex.parse(t[1])
- }));
- console.log(result);
- return result;
- },
- context: function(t) {
- t.preventDefault()
- },
- resize: function() {
- this.$el.width != this.$el.parentNode.clientWidth && this.draw(this.dText(), this.$el.parentNode.clientWidth)
- },
- draw: function(t, e) {
- var a = this;
- this.ctx.canvas.width = e, this.ctx.font = this.fontSize + "px " + this.font;
- var n = this.fragmentText(t, e);
- this.ctx.canvas.height = n.length * Math.ceil(this.fontSize * this.lineHeight) + 5, this.ctx.clearRect(0, 0, e, this.ctx.canvas.height), this.ctx.save(), this.ctx.font = this.fontSize + "px " + this.font, n.forEach(function(t, e) {
- a.ctx.fillText(t, 0, (e + 1) * Math.ceil(a.fontSize * a.lineHeight))
- }), this.ctx.restore()
- },
- fragmentText: function(t, e) {
- var a = t.split(" "),
- n = [],
- r = "";
- if (this.ctx.measureText(t).width < e) return [t];
- for (; a.length > 0;) {
- for (; this.ctx.measureText(a[0]).width >= e;) {
- var s = a[0];
- a[0] = s.slice(0, -1), a.length > 1 ? a[1] = s.slice(-1) + a[1] : a.push(s.slice(-1))
- }
- this.ctx.measureText(r + a[0]).width < e ? r += a.shift() + " " : (n.push(r), r = ""), 0 === a.length && n.push(r)
- }
- return n
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(12),
- s = n(r),
- i = a(255),
- o = n(i);
- e["default"] = {
- props: {
- config: Array
- },
- data: function() {
- return {}
- },
- watch: {
- config: function(t) {
- t && this.initialize(t)
- }
- },
- mounted: function() {
- var t = this;
- this.$nextTick(function() {
- return t.initialize(t.config)
- })
- },
- methods: {
- initialize: function(t) {
- var e = this,
- a = this.getBaseConfig();
- t.forEach(function(t) {
- var n = e.getDatasetConfig(t.color);
- (0, s["default"])(n, {
- label: t.label,
- data: t.data
- }), a.data.datasets.push(n)
- }), new o["default"](this.$el, a)
- },
- getBaseConfig: function() {
- return {
- type: "line",
- data: {
- datasets: []
- },
- options: {
- scales: {
- xAxes: [{
- type: "linear",
- position: "bottom"
- }]
- },
- tooltips: {
- callbacks: {
- title: function() {
- return ""
- },
- label: function(t, e) {
- var a = 1 == t.yLabel ? "utilizator a" : "utilizatori au",
- n = 1 == t.xLabel ? "întrebare" : "întrebări",
- r = 0 == t.datasetIndex ? "corect" : "greșit";
- return t.yLabel + " " + a + " răspuns " + r + " la " + t.xLabel + " " + n
- }
- }
- }
- }
- }
- },
- getDatasetConfig: function(t) {
- return {
- fill: !1,
- lineTension: .1,
- backgroundColor: t,
- borderColor: t,
- borderCapStyle: "butt",
- borderDash: [],
- borderDashOffset: 0,
- borderJoinStyle: "miter",
- pointBorderColor: t,
- pointBackgroundColor: "#fff",
- pointBorderWidth: 1,
- pointHoverRadius: 5,
- pointHoverBackgroundColor: t,
- pointHoverBorderColor: t,
- pointHoverBorderWidth: 2,
- pointRadius: 1,
- pointHitRadius: 10,
- spanGaps: !1
- }
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- props: {
- title: String,
- loading: Boolean,
- center: Boolean
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(238),
- s = n(r);
- e["default"] = {
- props: ["value"],
- data: function() {
- return {
- editor: null,
- query: ""
- }
- },
- watch: {
- value: function(t) {
- this.query = t, "" === t && this.editor.setValue("")
- }
- },
- mounted: function() {
- var t = this;
- this.$nextTick(function() {
- return t.initialize()
- })
- },
- methods: {
- initialize: function() {
- var t = this;
- this.editor = (0, s["default"])(this.$el), this.editor.setValue(this.value), this.editor.on("change", function(e) {
- t.$emit("input", e.getValue())
- })
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- props: ["results", "correct"],
- data: function() {
- return {
- id: Math.round(1e4 * Math.random())
- }
- },
- mounted: function() {
- this.results && this.results.columns && this.correct && this.correct.columns && this.diff(this.results, this.correct)
- },
- methods: {
- diff: function(t, e) {
- var a = e.rows.map(function(t) {
- return t
- }),
- n = t.rows.map(function(t) {
- return t
- });
- a.unshift(e.columns), n.unshift(t.columns), e = new daff.TableView(a), t = new daff.TableView(n);
- var r = daff.compareTables(t, e).align(),
- s = [],
- i = new daff.TableView(s),
- o = new daff.CompareFlags,
- u = new daff.TableDiff(r, o);
- u.hilite(i), i.data = i.data.map(function(t) {
- return t.map(function(t) {
- return null === t ? "" : t ? t.replace(/\s/g, '<span class="space"> </span>') : t
- })
- });
- var l = new daff.DiffRender;
- l.render(i);
- var c = $(l.html()).addClass("table table-striped table-bordered");
- $(this.$refs.difference).html(c)
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(3),
- s = n(r);
- e["default"] = {
- props: {
- value: {},
- options: {
- type: Array,
- "default": function() {
- return []
- }
- },
- multiple: Boolean,
- valueField: {
- "default": function() {
- return "id"
- }
- },
- labelField: {
- "default": function() {
- return "name"
- }
- },
- searchField: {
- "default": function() {
- return ["name"]
- }
- },
- tags: Boolean,
- closeAfterSelect: Boolean,
- placeholder: String,
- maxItems: Number
- },
- data: function() {
- return {
- $select: null,
- selected: []
- }
- },
- watch: {
- options: function(t) {
- this.$select.options = t, this.init()
- }
- },
- mounted: function() {
- this.init()
- },
- methods: {
- init: function() {
- var t = this;
- null != this.$select && this.$select.destroy();
- var e = (0, s["default"])(this.$el).selectize(this.constructOptions());
- this.$select = e[0].selectize, this.$select.on("change", function() {
- var e = t.$select.items;
- t.multiple || (e = e.length > 0 ? e[0] : null), t.$emit("input", e)
- })
- },
- constructOptions: function() {
- var t = this,
- e = {
- highlight: !1,
- options: this.options,
- maxItems: this.maxItems,
- valueField: this.valueField,
- labelField: this.labelField,
- searchField: this.searchField,
- closeAfterSelect: this.closeAfterSelect,
- items: this.multiple ? this.value : [this.value],
- plugins: ["remove_button"]
- };
- return this.tags && (e.persist = !1, e.create = function(e) {
- var a = {};
- return a[t.valueField] = e, a[t.labelField] = e, a
- }), e
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- props: {
- text: String
- },
- computed: {
- output: function() {
- var t = '<span class="space"> </span>';
- return this.text ? this.text.replace(/\s/g, t) : this.text
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- data: function() {
- return {
- active: !1,
- tables: []
- }
- },
- created: function() {
- this.fetch()
- },
- methods: {
- fetch: function() {
- var t = this;
- this.$http.get("/tables").then(function(e) {
- var a = e.data;
- a.forEach(function(t) {
- return t.active = !1
- }), t.tables = a
- })
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- props: ["chapter"],
- computed: {
- description: function a() {
- for (var t = 10, e = 200, a = this.getNWords(this.chapter.description, t); a.length + 4 > e;) a = this.getNWords(this.chapter.description, --t);
- return this.getWordsCount(this.chapter.description) > t && (a += "..."), a
- }
- },
- methods: {
- getNWords: function(t, e) {
- return t.split(/\s+/).slice(0, e).join(" ")
- },
- getWordsCount: function(t) {
- return t.split(/\s+/).length
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(443),
- s = n(r);
- e["default"] = {
- components: {
- ChapterCard: s["default"]
- },
- data: function() {
- return {
- chapters: []
- }
- },
- created: function() {
- this.$root.pageTitle("Dashboard"), this.fetchChapters()
- },
- methods: {
- fetchChapters: function() {
- var t = this;
- this.$event.emit("loading.start"), this.$http.get("/chapters").then(function(e) {
- var a = e.data;
- return t.chapters = a
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(29),
- s = n(r);
- e["default"] = {
- mixins: [s["default"]],
- data: function() {
- return {
- chapters: [],
- maxQuestionLength: window.config.maxQuestionLength,
- form: this.$form({
- question: "",
- query: "",
- chapter: null
- })
- }
- },
- computed: {
- remainingChars: function() {
- var t = this.maxQuestionLength - this.form.question.length - (this.form.question.match(/\n/g) || []).length;
- return t > 0 ? t : 0
- }
- },
- created: function() {
- this.$root.pageTitle("Adaugă întrebare"), this.$event.emit("loading.start"), this.fetchChapters()
- },
- methods: {
- fetchChapters: function() {
- var t = this;
- this.$http.get("/user/chapters").then(function(e) {
- var a = e.data;
- return t.chapters = a
- })
- },
- save: function() {
- var t = this;
- this.form.post("/user/questions").then(function(e) {
- e.data;
- t.form.query = "", t.form.question = "", t.queryResults = {}, t.fetchChapters()
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(447),
- s = n(r);
- e["default"] = {
- components: {
- QuestionPanel: s["default"]
- },
- data: function() {
- return {
- questions: []
- }
- },
- created: function() {
- var t = this;
- this.$root.pageTitle("Întrebările mele"), this.fetchQuestions(), this.$on("questionDeleted", function() {
- return t.fetchQuestions()
- })
- },
- computed: {
- oddQuestions: function() {
- return this.questions.filter(function(t, e) {
- return (e + 1) % 2 !== 0
- })
- },
- evenQuestions: function() {
- return this.questions.filter(function(t, e) {
- return (e + 1) % 2 === 0
- })
- }
- },
- methods: {
- fetchQuestions: function() {
- var t = this;
- this.$event.emit("loading.start"), this.$http.get("/user/questions").then(function(e) {
- var a = e.data;
- t.questions = a
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var n = a(8);
- e["default"] = {
- props: ["question"],
- computed: {
- canBeDeleted: function() {
- return this.question["delete"].canBeDeleted
- },
- needToAddQuestion: function() {
- return this.question["delete"].needToAddQuestion
- },
- canDelete: function() {
- return this.question["delete"].canDelete
- }
- },
- methods: {
- destroy: function() {
- var t = this;
- (0, n.confirm)(function() {
- t.$http["delete"]("/user/questions/" + t.question.id).then(function() {
- t.$parent.$emit("questionDeleted", {
- question: t.question
- })
- })
- }, {
- text: "Ești sigur că vrei să ștergi această întrebare?"
- })
- }
- }
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = {
- data: function() {
- return {
- form: this.$form({
- password: "",
- current_password: "",
- password_confirmation: ""
- })
- }
- },
- methods: {
- save: function() {
- var t = this;
- this.form.patch("/user/password").then(function() {
- return t.form.reset()
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(3),
- s = n(r),
- i = a(448),
- o = n(i);
- e["default"] = {
- components: {
- Password: o["default"]
- },
- mounted: function() {
- this.$root.pageTitle("Setări"), (0, s["default"])(this.$el).find('[data-toggle="tab"]').on("click", function(t) {
- t.preventDefault(), (0, s["default"])(this).tab("show")
- })
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(12),
- s = n(r),
- i = a(30),
- o = n(i),
- u = a(3),
- l = n(u),
- c = a(16),
- d = n(c),
- f = "datatable.";
- e["default"] = {
- props: {
- wrapperClass: String,
- tableClass: {
- type: String,
- "default": function() {
- return "table table-bordered table-striped table-hover dtr-inline"
- }
- },
- columns: Array,
- url: String,
- params: {
- type: Object,
- "default": function() {}
- },
- perPage: {
- type: Number,
- "default": function() {
- return 20
- }
- },
- lengthMenu: {
- type: Array,
- "default": function() {
- return [10, 20, 50, 75, 100]
- }
- },
- actions: {
- type: Array,
- "default": function() {
- return []
- }
- },
- serverSide: {
- type: Boolean,
- "default": function() {
- return !0
- }
- },
- initOnStart: {
- type: Boolean,
- "default": function() {
- return !0
- }
- },
- language: {
- type: Object,
- "default": function() {
- return {
- search: "_INPUT_",
- searchPlaceholder: "Caută...",
- lengthMenu: "_MENU_",
- zeroRecords: "Nici un rezultat găsit.",
- emptyTable: "Nici un rezultat.",
- info: "_START_ - _END_ din _TOTAL_ rezultate",
- infoEmpty: "",
- infoFiltered: "",
- paginate: {
- previous: "«",
- next: "»"
- }
- }
- }
- },
- order: {
- type: Array,
- "default": function() {
- return []
- }
- },
- responsive: {
- type: Boolean,
- "default": function() {
- return !0
- }
- },
- options: {
- type: Array,
- "default": function() {
- return []
- }
- }
- },
- data: function() {
- return {
- table: null
- }
- },
- mounted: function() {
- var t = this;
- this.$root.$on(f + "init", function() {
- return t.initDataTable()
- }), this.$root.$on(f + "refresh", function() {
- t.table.settings()[0].ajax.data = (0, o["default"])({}, t.table.settings()[0].ajax.data, t.params), t.table.draw()
- }), this.normalizeColumns(), this.initOnStart && this.initDataTable()
- },
- methods: {
- initDataTable: function() {
- var t = (0, l["default"])(this.$refs.table),
- e = (0, s["default"])({}, this.options, this.defaults());
- this.enhanceColumns(e.columns), this.table = t.DataTable(e), this.actionsEvents(), this.$root.$emit(f + "ready", t, this.table), this.$emit("ready", t, this.table)
- },
- normalizeColumns: function() {
- var t = this;
- this.columns.map(function(e) {
- return "string" == typeof e && (e = {
- name: e
- }), void 0 === e.title && (e.title = t.title(e.name)), void 0 === e.visible && (e.visible = !0), e
- })
- },
- defaults: function() {
- return {
- ajax: {
- url: this.url,
- data: this.params,
- headers: {
- Authorization: "Bearer " + d["default"].getters.authToken
- }
- },
- autoWidth: !1,
- order: this.order,
- columns: this.columns,
- language: this.language,
- serverSide: this.serverSide,
- responsive: this.responsive,
- pageLength: this.perPage,
- lengthMenu: this.lengthMenu
- }
- },
- enhanceColumns: function(t) {
- var e = this;
- t.forEach(function(a, n) {
- "__actions" === a && (t[n] = e.buildActions()), a.callback && (a.render = function() {
- for (var t = arguments.length, n = Array(t), r = 0; r < t; r++) n[r] = arguments[r];
- return e.callCallback.apply(e, [a].concat(n))
- })
- })
- },
- callCallback: function(t) {
- for (var e = arguments.length, a = Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++) a[n - 1] = arguments[n];
- return "function" == typeof t.callback ? t.callback.apply(this.$parent, a) : Array.isArray(t.callback) ? t.callback[0][t.callback[1]].apply(t.callback[0], a) : "function" == typeof this.$parent[t.callback] ? this.$parent[t.callback].apply(this.$parent, a) : void 0
- },
- actionsEvents: function() {
- var t = this;
- this.actions.forEach(function(e, a) {
- t.table.on("click", '[data-action="' + a + '"]', function(a) {
- a.preventDefault();
- var n = (0, l["default"])(a.currentTarget).data("row"),
- r = t.table.row(n).data();
- t.callAction(e, r, n)
- })
- })
- },
- buildActions: function() {
- var t = this,
- e = {
- orderable: !1,
- searchable: !1,
- render: function(e, a, n, r) {
- return [""].concat(t.actions).reduce(function(e, a, n) {
- return e + t.buildAction(a, r.row, n - 1)
- })
- }
- };
- return e
- },
- buildAction: function(t, e, a) {
- var n = this.callActionLink(t, this.table.row(e).data(), e);
- n = n ? 'href="' + n + '"' : "";
- var r = n ? "a" : "span";
- return "\n <" + r + " " + n + ' class="' + (t["class"] || "") + '" title="' + (t.title || "") + '" data-action="' + a + '" data-row="' + e + '">\n <i class="' + t.icon + '"></i> ' + (t.label || "") + "\n </" + r + ">\n "
- },
- callActionLink: function(t, e, a) {
- return "function" == typeof t.link ? t.link(e, a) || null : Array.isArray(t.link) ? t.link[0][t.link[1]](e, a) || null : null
- },
- callAction: function(t, e, a) {
- return "function" == typeof t.callback ? t.callback(e, a) : Array.isArray(t.callback) ? t.callback[0][t.callback[1]](e, a) : void 0
- },
- getTitle: function(t) {
- return "undefined" == typeof t.title ? t.name.replace(".", " ") : t.title
- },
- title: function(t) {
- return this.isSpecialColumn(t) ? "" : this.titleCase(t)
- },
- titleCase: function(t) {
- return t.replace(/\w+/g, function(t) {
- return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase()
- })
- },
- isSpecialColumn: function(t) {
- return t.startsWith("__")
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- var r = a(11),
- s = n(r),
- i = a(3),
- o = n(i),
- u = a(38),
- l = n(u),
- c = a(492),
- d = n(c);
- a(235), a(240), a(233);
- var f = a(41),
- h = n(f),
- p = a(242),
- m = n(p),
- _ = a(241),
- v = n(_),
- b = a(239),
- g = n(b);
- window.jQuery = window.$ = o["default"], a(398), a(254), a(393), a(75)(window, o["default"]), a(387)(window, o["default"]), (0, g["default"])(), s["default"].use(h["default"]), s["default"].use(l["default"]), s["default"].use(d["default"]), s["default"].use(m["default"]), s["default"].http.interceptors.push(v["default"])
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(415),
- s = n(r),
- i = a(418),
- o = n(i),
- u = a(419),
- l = n(u),
- c = a(420),
- d = n(c),
- f = a(421),
- h = n(f),
- p = a(423),
- m = n(p),
- _ = a(422),
- v = n(_),
- b = a(428),
- g = n(b),
- y = a(429),
- C = n(y),
- w = a(430),
- x = n(w),
- q = a(417),
- j = n(q),
- k = a(432),
- $ = n(k),
- R = a(433),
- F = n(R),
- T = a(434),
- M = n(T),
- P = a(426),
- S = n(P),
- A = [{
- path: "/admin",
- component: s["default"],
- name: "admin.dashboard"
- }, {
- path: "/admin/chapters",
- component: d["default"],
- name: "admin.chapters.index",
- children: [{
- path: "/admin/chapters/create",
- component: o["default"],
- name: "admin.chapters.create"
- }, {
- path: "/admin/chapters/:id/edit",
- component: l["default"],
- name: "admin.chapters.edit"
- }]
- }, {
- path: "/admin/questions",
- component: m["default"],
- name: "admin.questions.index"
- }, {
- path: "/admin/questions/create",
- component: h["default"],
- name: "admin.questions.create"
- }, {
- path: "/admin/questions/:id/edit",
- component: v["default"],
- name: "admin.questions.edit"
- }, {
- path: "/admin/tables",
- component: j["default"],
- name: "admin.tables"
- }, {
- path: "/admin/users",
- component: x["default"],
- name: "admin.users.index",
- children: [{
- path: "/admin/users/create",
- component: g["default"],
- name: "admin.users.create"
- }, {
- path: "/admin/users/:id/edit",
- component: C["default"],
- name: "admin.users.edit"
- }]
- }, {
- path: "/admin/users/:id",
- component: $["default"],
- name: "admin.users.view",
- children: [{
- path: "/",
- component: M["default"],
- name: "admin.users.chapters"
- }, {
- path: "/admin/users/:id/chapter/:cid",
- component: F["default"],
- name: "admin.users.answers"
- }]
- }, {
- path: "/admin/settings",
- component: S["default"],
- name: "admin.settings"
- }];
- e["default"] = A
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var a = {
- template: '\n <span class="action" :class="types[type]">\n <a v-if="action" @click.prevent="onClick" :title="title" href="#">\n <i v-if="icon" class="fa" :class="icon"></i>\n <slot></slot>\n </a>\n <router-link v-else :to="to" class="action" :class="types[type]" :title="title">\n <i v-if="icon" class="fa" :class="icon"></i>\n <slot></slot>\n </router-link>\n </span>\n ',
- props: {
- type: {
- type: String,
- "default": function() {
- return "default"
- }
- },
- action: Function,
- to: [String, Object],
- item: {},
- icon: String,
- title: String
- },
- data: function() {
- return {
- types: {
- "default": "action-default",
- primary: "action-primary",
- success: "action-success",
- danger: "action-danger"
- }
- }
- },
- methods: {
- onClick: function(t) {
- this.action(this.item, t)
- }
- }
- },
- n = {
- "extends": a,
- props: {
- type: {
- type: String,
- "default": function() {
- return "primary"
- }
- }
- }
- },
- r = {
- "extends": a,
- props: {
- type: {
- type: String,
- "default": function() {
- return "success"
- }
- }
- }
- },
- s = {
- "extends": a,
- props: {
- type: {
- type: String,
- "default": function() {
- return "danger"
- }
- }
- }
- };
- e.ActionDefault = a, e.ActionPrimary = n, e.ActionSuccess = r, e.ActionDanger = s
- }, function(t, e, a) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var n = a(38);
- e["default"] = {
- "extends": n.HasError,
- template: '\n <div class="help-block has-error" v-if="form.errors.has(field)" v-html="form.errors.get(field)"></div>\n '
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- var r = a(11),
- s = n(r),
- i = a(437),
- o = n(i),
- u = a(232),
- l = n(u),
- c = a(40),
- d = n(c),
- f = a(438),
- h = n(f),
- p = a(439),
- m = n(p),
- _ = a(442),
- v = n(_),
- b = a(440),
- g = n(b),
- y = a(436),
- C = n(y),
- w = a(435),
- x = n(w),
- q = a(441),
- j = n(q),
- k = a(38),
- $ = a(231);
- s["default"].component("panel", o["default"]), s["default"].component("has-error", l["default"]), s["default"].component("alert-error", k.AlertError), s["default"].component("alert-errors", k.AlertErrors), s["default"].component("alert-success", k.AlertSuccess), s["default"].component("action-default", $.ActionDefault), s["default"].component("action-primary", $.ActionPrimary), s["default"].component("action-success", $.ActionSuccess), s["default"].component("action-danger", $.ActionDanger), s["default"].component("datatable", d["default"]), s["default"].component("query-input", h["default"]), s["default"].component("query-results", m["default"]), s["default"].component("table-tree", v["default"]), s["default"].component("selectize", g["default"]), s["default"].component("linear-chart", C["default"]), s["default"].component("canvas-text", x["default"]), s["default"].component("space-aware-text", j["default"])
- }, function(t, e, a) {
- "use strict";
- var n = a(5);
- a(302), a(297), a(296), a(295), a(299), a(61), a(61), n.defineMode("plsql", function(t, e) {
- function a(t, e, a) {
- return e.tokenize = a, a(t, e)
- }
- function n(t, e) {
- return o = t, e
- }
- function r(t, e) {
- var r = t.next();
- return '"' == r || "'" == r ? a(t, e, s(r)) : /[\[\]{}\(\),;\.]/.test(r) ? n(r) : /\d/.test(r) ? (t.eatWhile(/[\w\.]/), n("number", "number")) : "/" == r ? t.eat("*") ? a(t, e, i) : (t.eatWhile(h), n("operator", "operator")) : "-" == r ? t.eat("-") ? (t.skipToEnd(), n("comment", "comment")) : (t.eatWhile(h), n("operator", "operator")) : "@" == r || "$" == r ? (t.eatWhile(/[\w\d\$_]/), n("word", "variable")) : h.test(r) ? (t.eatWhile(h), n("operator", "operator")) : (t.eatWhile(/[\w\$_]/), u && u.propertyIsEnumerable(t.current().toLowerCase()) ? n("keyword", "keyword") : l && l.propertyIsEnumerable(t.current().toLowerCase()) ? n("keyword", "builtin") : c && c.propertyIsEnumerable(t.current().toLowerCase()) ? n("keyword", "variable-2") : d && d.propertyIsEnumerable(t.current().toLowerCase()) ? n("keyword", "variable-3") : n("word", "variable"))
- }
- function s(t) {
- return function(e, a) {
- for (var s, i = !1, o = !1; null != (s = e.next());) {
- if (s == t && !i) {
- o = !0;
- break
- }
- i = !i && "\\" == s
- }
- return (o || !i && !f) && (a.tokenize = r), n("string", "plsql-string")
- }
- }
- function i(t, e) {
- for (var a, s = !1; a = t.next();) {
- if ("/" == a && s) {
- e.tokenize = r;
- break
- }
- s = "*" == a
- }
- return n("comment", "plsql-comment")
- }
- var o, u = (t.indentUnit, e.keywords),
- l = e.functions,
- c = e.types,
- d = e.sqlplus,
- f = e.multiLineStrings,
- h = /[+\-*&%=<>!?:\/|]/;
- return {
- startState: function(t) {
- return {
- tokenize: r,
- startOfLine: !0
- }
- },
- token: function(t, e) {
- if (t.eatSpace()) return null;
- var a = e.tokenize(t, e);
- return a
- }
- }
- }),
- function() {
- function t(t) {
- for (var e = {}, a = t.split(" "), n = 0; n < a.length; ++n) e[a[n]] = !0;
- return e
- }
- var e = "abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",
- a = "abs acos add_months ascii asin atan atan2 average bfilename ceil chartorowid chr concat convert cos cosh count decode deref dual dump dup_val_on_index empty error exp false floor found glb greatest hextoraw initcap instr instrb isopen last_day least lenght lenghtb ln lower lpad ltrim lub make_ref max min mod months_between new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null nvl others power rawtohex reftohex round rowcount rowidtochar rpad rtrim sign sin sinh soundex sqlcode sqlerrm sqrt stddev substr substrb sum sysdate tan tanh to_char to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid upper user userenv variance vsize",
- r = "bfile blob character clob dec float int integer mlslabel natural naturaln nchar nclob number numeric nvarchar2 real rowtype signtype smallint string varchar varchar2",
- s = "appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap";
- n.defineMIME("text/x-plsql", {
- name: "plsql",
- keywords: t(e),
- functions: t(a),
- types: t(r),
- sqlplus: t(s)
- })
- }()
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- var r = a(12),
- s = n(r);
- a(370).polyfill(), Array.prototype.find || (Array.prototype.find = function(t) {
- if (null == this) throw new TypeError("Array.prototype.find called on null or undefined");
- if ("function" != typeof t) throw new TypeError("predicate must be a function");
- for (var e, a = Object(this), n = a.length >>> 0, r = arguments[1], s = 0; s < n; s++)
- if (e = a[s], t.call(r, e, s, a)) return e
- }), Array.prototype.includes || (Array.prototype.includes = function(t) {
- if (null == this) throw new TypeError("Array.prototype.includes called on null or undefined");
- var e = Object(this),
- a = parseInt(e.length, 10) || 0;
- if (0 === a) return !1;
- var n, r = parseInt(arguments[1], 10) || 0;
- r >= 0 ? n = r : (n = a + r, n < 0 && (n = 0));
- for (var s; n < a;) {
- if (s = e[n], t === s || t !== t && s !== s) return !0;
- n++
- }
- return !1
- }), "function" != typeof s["default"] && (Object.assign = function(t) {
- if (void 0 === t || null === t) throw new TypeError("Cannot convert undefined or null to object");
- for (var e = Object(t), a = 1; a < arguments.length; a++) {
- var n = arguments[a];
- if (void 0 !== n && null !== n)
- for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r])
- }
- return e
- }), String.prototype.startsWith || (String.prototype.startsWith = function(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
- return this.substr(e, t.length) === t
- }), String.prototype.includes || (String.prototype.includes = function(t, e) {
- return "number" != typeof e && (e = 0), !(e + t.length > this.length) && this.indexOf(t, e) !== -1
- }), Array.prototype.findIndex || Object.defineProperty(Array.prototype, "findIndex", {
- value: function i(t) {
- if (null == this) throw new TypeError("Array.prototype.findIndex called on null or undefined");
- if ("function" != typeof t) throw new TypeError("predicate must be a function");
- for (var i, e = Object(this), a = e.length >>> 0, n = arguments[1], r = 0; r < a; r++)
- if (i = e[r], t.call(n, i, r, e)) return r;
- return -1
- },
- enumerable: !1,
- configurable: !1,
- writable: !1
- })
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(3),
- s = n(r),
- i = "datatable.";
- e["default"] = {
- methods: {
- initDataTable: function() {
- this.$root.$emit(i + "init")
- },
- refreshDataTable: function() {
- this.$root.$emit(i + "refresh")
- },
- addButtonDataTable: function(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "Add New",
- a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "default";
- this.$root.$on(i + "ready", function(n) {
- var r = (0, s["default"])("<button>", {
- html: '<i data-v-9="" class="fa fa-plus fa-btn"></i> ' + e,
- type: "button",
- "class": "btn btn-sm btn-" + a
- });
- r.on("click", function() {
- return t()
- }), n.closest(".dataTables_wrapper").find(".dataTables-add-button").html(r)
- })
- },
- addFilterDataTable: function(t) {
- this.$root.$on(i + "ready", function(e) {
- var a = (0, s["default"])("<select>", {
- "class": "form-control input-sm m-l-xs"
- }).append((0, s["default"])("<option>", {
- value: "all",
- text: "Toate"
- })).append((0, s["default"])("<option>", {
- value: "solved_ratio",
- text: "Filtru răspuns"
- })).append((0, s["default"])("<option>", {
- value: "time_taken",
- text: "Filtru timp"
- })).append((0, s["default"])("<option>", {
- value: "reported",
- text: "Raportate"
- })).append((0, s["default"])("<option>", {
- value: "reported_wrong",
- text: "Raportate gresite"
- }));
- a.on("change", function() {
- return t(a.val())
- }), e.closest(".dataTables_wrapper").find(".dataTables-add-button").append(a)
- })
- }
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(252),
- s = n(r),
- i = a(11),
- o = n(i),
- u = a(493),
- l = n(u),
- c = a(230),
- d = n(c),
- f = a(244),
- h = n(f),
- p = a(243),
- m = a(412),
- _ = n(m),
- v = a(444),
- b = n(v),
- g = a(449),
- y = n(g),
- C = a(414),
- w = n(C),
- x = a(411),
- q = n(x),
- j = a(446),
- k = n(j),
- $ = a(445),
- R = n($);
- o["default"].use(l["default"]);
- var F = [].concat((0, s["default"])((0, p.requireAuth)([{
- path: "/dashboard",
- component: b["default"],
- name: "dashboard"
- }, {
- path: "/settings",
- component: y["default"],
- name: "user.settings"
- }, {
- path: "/quiz/:id",
- component: w["default"],
- name: "quiz"
- }, {
- path: "/statistics/:id",
- component: q["default"],
- name: "chapter.statistics"
- }, {
- path: "/questions",
- component: k["default"],
- name: "user.questions"
- }, {
- path: "/questions/add",
- component: R["default"],
- name: "user.questions.create"
- }])), (0, s["default"])((0, p.requireAdmin)(d["default"])), (0, s["default"])((0, p.requireGuest)([{
- path: "/login",
- component: _["default"],
- name: "login"
- }])), [{
- path: "*",
- redirect: "/dashboard"
- }]),
- T = window.navigator.userAgent,
- M = T.match(/iPad/i) || T.match(/iPhone/i) ? "hash" : "history";
- e["default"] = new l["default"]({
- mode: M,
- scrollBehavior: h["default"],
- routes: F
- })
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var r = a(12),
- s = n(r);
- e["default"] = function(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
- return o["default"].fromTextArea(t, (0, s["default"])({}, u, e))
- };
- var i = a(5),
- o = n(i);
- a(234);
- var u = {
- tabSize: 2,
- theme: "neat",
- minHeight: 150,
- lineNumbers: !0,
- matchBrackets: !0,
- mode: "text/x-plsql",
- styleActiveLine: !0,
- historyEventDelay: 120,
- autoCloseBrackets: !0,
- viewportMargin: 1 / 0
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = function() {
- s["default"].extend(!0, s["default"].fn.dataTable.defaults, {
- dom: "\n <'row'<'col-sm-6 dataTables-add-button'><'col-sm-6 dataTables-length-filter'lf>>\n <'row'<'col-sm-12'tr>>\n <'row'<'col-sm-5'i><'col-sm-7'p>>\n ",
- renderer: "bootstrap"
- })
- };
- var r = a(3),
- s = n(r)
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- var r = a(11),
- s = n(r),
- i = a(3),
- o = n(i),
- u = a(188),
- l = n(u);
- s["default"].directive("tooltip", {
- bind: function(t, e) {
- s["default"].nextTick(function() {
- (0, o["default"])(t).tooltip({
- trigger: "hover",
- title: e.value,
- html: !0
- })
- })
- }
- }), s["default"].directive("link", {
- bind: function(t, e) {
- t.setAttribute("href", e.value), (0, o["default"])(t).on("click", function(t) {
- 1 === t.which && (t.preventDefault(), window.app.$router.push(e.value))
- })
- },
- update: function(t, e) {
- t.setAttribute("href", e.value), (0, o["default"])(t).off().on("click", function(t) {
- 1 === t.which && (t.preventDefault(), window.app.$router.push(e.value))
- })
- }
- }), s["default"].directive("mdl", {
- bind: function(t) {
- window.componentHandler.upgradeElement(t)
- }
- }), s["default"].directive("autosize", {
- bind: function(t) {
- (0, l["default"])(t)
- },
- unbind: function(t) {
- l["default"].destroy(t)
- }
- })
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function r(t, e) {
- t.url = window.config.api + t.url, t.headers.set("X-XSRF-TOKEN", i["default"].get("XSRF-TOKEN")), d["default"].getters.authToken && t.headers.set("Authorization", "Bearer " + d["default"].getters.authToken), e(function(t) {
- u["default"].emit("loading.done"), t.status >= 500 && (0, l.oops)(), 401 === t.status && d["default"].getters.authUser && (0, l.missing)(function() {
- d["default"].commit("LOGOUT"), window.app.$router.push({
- name: "login"
- })
- }, {
- text: "A expirat sesiunea."
- })
- })
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = r;
- var s = a(79),
- i = n(s),
- o = a(41),
- u = n(o),
- l = a(8),
- c = a(16),
- d = n(c)
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function r(t, e) {
- for (var a = 0; a < e.length; a++) {
- if (e[a].name === t) return e[a];
- if (e[a].children) {
- var n = r(t, e[a].children);
- if (n) return n
- }
- }
- }
- function s(t) {
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
- a = r(t, this.$router.options.routes);
- if ("number" == typeof e) {
- var n = d["default"].parse(a.path).find(function(t) {
- return "object" === ("undefined" == typeof t ? "undefined" : (0, l["default"])(t))
- });
- n && (e = (0, o["default"])({}, n.name, e))
- }
- return {
- name: t,
- params: e
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = a(60),
- o = n(i),
- u = a(253),
- l = n(u),
- c = a(396),
- d = n(c);
- e["default"] = {
- install: function(t) {
- t.prototype.$to = s
- }
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function r() {
- var t = f["default"].dispatch("fetchUser");
- return t.then(function() {
- return c["default"].emit("loading.done")
- }), t
- }
- function s(t, e, a) {
- return f["default"].getters.authCheck ? a() : f["default"].getters.authToken ? r().then(function() {
- return a()
- }) : void a({
- name: "login"
- })
- }
- function i(t, e, a) {
- return f["default"].getters.authCheck && f["default"].getters.authUser.admin ? a() : f["default"].getters.authToken ? r().then(function() {
- return a()
- }) : void a({
- path: "/"
- })
- }
- function o(t, e, a) {
- f["default"].getters.authCheck ? a({
- path: "/"
- }) : a()
- }
- function u(t, e) {
- return t.map(function(t) {
- return t.beforeEnter = e
- }), t
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.requireAdmin = e.requireGuest = e.requireAuth = void 0;
- var l = a(41),
- c = n(l),
- d = a(16),
- f = n(d);
- e.requireAuth = function(t) {
- return u(t, s)
- }, e.requireGuest = function(t) {
- return u(t, o)
- }, e.requireAdmin = function(t) {
- return u(t, i)
- }
- }, function(t, e) {
- "use strict";
- function a(t, e, a) {
- if (a) return a;
- var n = {};
- return t.hash && (n.selector = t.hash), t.matched.some(function(t) {
- return t.meta.scrollToTop
- }) && (n.x = 0, n.y = 0), n
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e["default"] = a
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- if (t && t.__esModule) return t;
- var e = {};
- if (null != t)
- for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
- return e["default"] = t, e
- }
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function s(t) {
- return function(e, a) {
- var n = e.commit;
- return n(t, a)
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.fetchUser = e.saveToken = e.logout = void 0;
- var i = a(11),
- o = r(i),
- u = a(59),
- l = n(u);
- e.logout = s(l.LOGOUT), e.saveToken = s(l.SAVE_TOKEN), e.fetchUser = function(t) {
- var e = t.commit,
- a = o["default"].http.get("/user");
- return a.then(function(t) {
- var a = t.data;
- e(l.FETCH_USER_SUCCESS, {
- user: a
- })
- })["catch"](function() {
- e(l.FETCH_USER_FAILURE)
- }), a
- }
- }, function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- e.authUser = function(t) {
- return t.auth.user
- }, e.authToken = function(t) {
- return t.auth.token
- }, e.authCheck = function(t) {
- return null !== t.auth.user
- }
- }, function(t, e, a) {
- "use strict";
- function n(t) {
- if (t && t.__esModule) return t;
- var e = {};
- if (null != t)
- for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
- return e["default"] = t, e
- }
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var s, i = a(60),
- o = r(i),
- u = a(79),
- l = r(u),
- c = a(59),
- d = n(c),
- f = {
- user: null,
- token: l["default"].get("token")
- },
- h = (s = {}, (0, o["default"])(s, d.SAVE_TOKEN, function(t, e) {
- var a = e.token,
- n = e.remember;
- t.token = a, l["default"].set("token", a, {
- expires: n ? 365 : null
- })
- }), (0, o["default"])(s, d.FETCH_USER_SUCCESS, function(t, e) {
- var a = e.user;
- t.user = a
- }), (0, o["default"])(s, d.FETCH_USER_FAILURE, function(t) {
- t.token = null, l["default"].remove("token")
- }), (0, o["default"])(s, d.LOGOUT, function(t) {
- t.user = null, t.token = null, l["default"].remove("token")
- }), s);
- e["default"] = {
- state: f,
- mutations: h
- }
- }, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, function(t, e) {}, , , , , , , , , function(t, e, a) {
- function n(t) {
- return a(r(t))
- }
- function r(t) {
- return s[t] || function() {
- throw new Error("Cannot find module '" + t + "'.")
- }()
- }
- var s = {
- "./af": 80,
- "./af.js": 80,
- "./ar": 85,
- "./ar-ly": 81,
- "./ar-ly.js": 81,
- "./ar-ma": 82,
- "./ar-ma.js": 82,
- "./ar-sa": 83,
- "./ar-sa.js": 83,
- "./ar-tn": 84,
- "./ar-tn.js": 84,
- "./ar.js": 85,
- "./az": 86,
- "./az.js": 86,
- "./be": 87,
- "./be.js": 87,
- "./bg": 88,
- "./bg.js": 88,
- "./bn": 89,
- "./bn.js": 89,
- "./bo": 90,
- "./bo.js": 90,
- "./br": 91,
- "./br.js": 91,
- "./bs": 92,
- "./bs.js": 92,
- "./ca": 93,
- "./ca.js": 93,
- "./cs": 94,
- "./cs.js": 94,
- "./cv": 95,
- "./cv.js": 95,
- "./cy": 96,
- "./cy.js": 96,
- "./da": 97,
- "./da.js": 97,
- "./de": 99,
- "./de-at": 98,
- "./de-at.js": 98,
- "./de.js": 99,
- "./dv": 100,
- "./dv.js": 100,
- "./el": 101,
- "./el.js": 101,
- "./en-au": 102,
- "./en-au.js": 102,
- "./en-ca": 103,
- "./en-ca.js": 103,
- "./en-gb": 104,
- "./en-gb.js": 104,
- "./en-ie": 105,
- "./en-ie.js": 105,
- "./en-nz": 106,
- "./en-nz.js": 106,
- "./eo": 107,
- "./eo.js": 107,
- "./es": 109,
- "./es-do": 108,
- "./es-do.js": 108,
- "./es.js": 109,
- "./et": 110,
- "./et.js": 110,
- "./eu": 111,
- "./eu.js": 111,
- "./fa": 112,
- "./fa.js": 112,
- "./fi": 113,
- "./fi.js": 113,
- "./fo": 114,
- "./fo.js": 114,
- "./fr": 117,
- "./fr-ca": 115,
- "./fr-ca.js": 115,
- "./fr-ch": 116,
- "./fr-ch.js": 116,
- "./fr.js": 117,
- "./fy": 118,
- "./fy.js": 118,
- "./gd": 119,
- "./gd.js": 119,
- "./gl": 120,
- "./gl.js": 120,
- "./he": 121,
- "./he.js": 121,
- "./hi": 122,
- "./hi.js": 122,
- "./hr": 123,
- "./hr.js": 123,
- "./hu": 124,
- "./hu.js": 124,
- "./hy-am": 125,
- "./hy-am.js": 125,
- "./id": 126,
- "./id.js": 126,
- "./is": 127,
- "./is.js": 127,
- "./it": 128,
- "./it.js": 128,
- "./ja": 129,
- "./ja.js": 129,
- "./jv": 130,
- "./jv.js": 130,
- "./ka": 131,
- "./ka.js": 131,
- "./kk": 132,
- "./kk.js": 132,
- "./km": 133,
- "./km.js": 133,
- "./ko": 134,
- "./ko.js": 134,
- "./ky": 135,
- "./ky.js": 135,
- "./lb": 136,
- "./lb.js": 136,
- "./lo": 137,
- "./lo.js": 137,
- "./lt": 138,
- "./lt.js": 138,
- "./lv": 139,
- "./lv.js": 139,
- "./me": 140,
- "./me.js": 140,
- "./mi": 141,
- "./mi.js": 141,
- "./mk": 142,
- "./mk.js": 142,
- "./ml": 143,
- "./ml.js": 143,
- "./mr": 144,
- "./mr.js": 144,
- "./ms": 146,
- "./ms-my": 145,
- "./ms-my.js": 145,
- "./ms.js": 146,
- "./my": 147,
- "./my.js": 147,
- "./nb": 148,
- "./nb.js": 148,
- "./ne": 149,
- "./ne.js": 149,
- "./nl": 150,
- "./nl.js": 150,
- "./nn": 151,
- "./nn.js": 151,
- "./pa-in": 152,
- "./pa-in.js": 152,
- "./pl": 153,
- "./pl.js": 153,
- "./pt": 155,
- "./pt-br": 154,
- "./pt-br.js": 154,
- "./pt.js": 155,
- "./ro": 156,
- "./ro.js": 156,
- "./ru": 157,
- "./ru.js": 157,
- "./se": 158,
- "./se.js": 158,
- "./si": 159,
- "./si.js": 159,
- "./sk": 160,
- "./sk.js": 160,
- "./sl": 161,
- "./sl.js": 161,
- "./sq": 162,
- "./sq.js": 162,
- "./sr": 164,
- "./sr-cyrl": 163,
- "./sr-cyrl.js": 163,
- "./sr.js": 164,
- "./ss": 165,
- "./ss.js": 165,
- "./sv": 166,
- "./sv.js": 166,
- "./sw": 167,
- "./sw.js": 167,
- "./ta": 168,
- "./ta.js": 168,
- "./te": 169,
- "./te.js": 169,
- "./th": 170,
- "./th.js": 170,
- "./tl-ph": 171,
- "./tl-ph.js": 171,
- "./tlh": 172,
- "./tlh.js": 172,
- "./tr": 173,
- "./tr.js": 173,
- "./tzl": 174,
- "./tzl.js": 174,
- "./tzm": 176,
- "./tzm-latn": 175,
- "./tzm-latn.js": 175,
- "./tzm.js": 176,
- "./uk": 177,
- "./uk.js": 177,
- "./uz": 178,
- "./uz.js": 178,
- "./vi": 179,
- "./vi.js": 179,
- "./x-pseudo": 180,
- "./x-pseudo.js": 180,
- "./zh-cn": 181,
- "./zh-cn.js": 181,
- "./zh-hk": 182,
- "./zh-hk.js": 182,
- "./zh-tw": 183,
- "./zh-tw.js": 183
- };
- n.keys = function() {
- return Object.keys(s)
- }, n.resolve = r, t.exports = n, n.id = 395
- }, , , , , , , , , , , , , , , function(t, e, a) {
- var n, r;
- a(371), a(372), n = a(189);
- var s = a(451);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-1", t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(384), n = a(190);
- var s = a(488);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]),
- "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(381), n = a(191);
- var s = a(484);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-4", t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(192);
- var s = a(459);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(383), n = a(193);
- var s = a(487);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(194);
- var s = a(460);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r, s = a(480);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(195);
- var s = a(471);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(196);
- var s = a(465);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(197);
- var s = a(463);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(375), n = a(198);
- var s = a(461);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-19", t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(199);
- var s = a(464);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(376), n = a(200);
- var s = a(467);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(201);
- var s = a(466);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(382), n = a(202);
- var s = a(486);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-41", t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(203);
- var s = a(485);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(204);
- var s = a(476);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(205);
- var s = a(483);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(206);
- var s = a(468);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(207);
- var s = a(470);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(377), n = a(208);
- var s = a(469);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(380), n = a(209);
- var s = a(482);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(210);
- var s = a(472);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(211);
- var s = a(474);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(212);
- var s = a(475);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(213);
- var s = a(457);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(214);
- var s = a(456);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(215);
- var s = a(453);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(216);
- var s = a(491);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(373), n = a(217);
- var s = a(452);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(218);
- var s = a(455);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(374), n = a(219);
- var s = a(458);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(220);
- var s = a(454);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(378), n = a(221);
- var s = a(478);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(222);
- var s = a(462);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(386), n = a(223);
- var s = a(490);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(385), n = a(224);
- var s = a(489);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- a(379), n = a(225);
- var s = a(479);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, r._scopeId = "data-v-35", t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(226);
- var s = a(477);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(227);
- var s = a(473);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(t, e, a) {
- var n, r;
- n = a(228);
- var s = a(481);
- r = n = n || {}, "object" != typeof n["default"] && "function" != typeof n["default"] || (r = n = n["default"]), "function" == typeof r && (r = r.options), r.render = s.render, r.staticRenderFns = s.staticRenderFns, t.exports = n
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- attrs: {
- id: "app"
- }
- }, [_h("div", {
- directives: [{
- name: "show",
- value: loading,
- expression: "loading"
- }],
- staticClass: "loading"
- }, [_m(0)]), " ", " ", authenticated ? [_h("transition", {
- attrs: {
- name: "fade",
- mode: "out-in"
- }
- }, [_h("div", [_h("navbar"), " ", _h("div", {
- staticClass: "container"
- }, [_h("transition", {
- attrs: {
- name: "fade",
- mode: "out-in"
- }
- }, [_h("router-view", {
- staticClass: "router-view"
- })])])])])] : [_h("transition", {
- attrs: {
- name: "fade",
- mode: "out-in"
- }
- }, [_h("router-view", {
- staticClass: "router-view"
- })])], " ", " "])
- },
- staticRenderFns: [function() {
- with(this) return _h("div", {
- staticClass: "spinner"
- }, ["Loading..."])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- staticClass: "query-results"
- }, [_h("div", {
- staticClass: "alert alert-info"
- }, [_h("space-aware-text", {
- attrs: {
- text: "Spațiile vor fi subliniate cu o linie gri."
- }
- })]), " ", " ", correct ? _h("ul", {
- staticClass: "nav nav-tabs",
- attrs: {
- role: "tablist"
- }
- }, [_h("li", {
- staticClass: "active"
- }, [_h("a", {
- attrs: {
- href: "#result-" + id,
- "data-toggle": "tab"
- }
- }, ["Rezultat"])]), " ", correct && correct.columns ? _h("li", [_h("a", {
- attrs: {
- href: "#correct-" + id,
- "data-toggle": "tab"
- }
- }, ["Corect"])]) : _e(), " ", correct && correct.columns ? _h("li", [_h("a", {
- attrs: {
- href: "#difference-" + id,
- "data-toggle": "tab"
- }
- }, ["Diferenta"])]) : _e()]) : _e(), " ", " ", _h("div", {
- staticClass: "tab-content"
- }, [_h("div", {
- staticClass: "tab-pane active",
- attrs: {
- id: "result-" + id
- }
- }, [_h("div", {
- staticClass: "table-responsive"
- }, [_h("table", {
- staticClass: "table table-striped table-bordered table-hover"
- }, [_h("thead", [_h("tr", [_l(results.columns, function(t) {
- return _h("th", [_h("space-aware-text", {
- attrs: {
- text: t
- }
- })])
- })])]), " ", _h("tbody", [_l(results.rows, function(t) {
- return _h("tr", [_l(t, function(t, e) {
- return _h("td", {
- key: e
- }, [_h("space-aware-text", {
- attrs: {
- text: t
- }
- })])
- })])
- })])])])]), " ", correct && correct.columns ? _h("div", {
- staticClass: "tab-pane",
- attrs: {
- id: "correct-" + id
- }
- }, [_h("div", {
- staticClass: "table-responsive"
- }, [_h("table", {
- staticClass: "table table-striped table-bordered table-hover"
- }, [_h("thead", [_h("tr", [_l(correct.columns, function(t) {
- return _h("th", [_h("space-aware-text", {
- attrs: {
- text: t
- }
- })])
- })])]), " ", _h("tbody", [_l(correct.rows, function(t) {
- return _h("tr", [_l(t, function(t, e) {
- return _h("td", {
- key: e
- }, [_h("space-aware-text", {
- attrs: {
- text: t
- }
- })])
- })])
- })])])])]) : _e(), " ", correct && correct.columns ? _h("div", {
- staticClass: "tab-pane difference",
- attrs: {
- id: "difference-" + id
- }
- }, [_h("div", {
- ref: "difference",
- staticClass: "table-responsive"
- })]) : _e()])])
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [loading ? [_h("transition", {
- attrs: {
- name: "fade",
- mode: "out-in"
- }
- }, [$root.loading ? _e() : _h("div", {
- staticClass: "page-panel"
- }, [title ? _h("h3", {
- staticClass: "page-header",
- "class": {
- "text-center": center
- }
- }, [_s(title)]) : _e(), " ", _t("default")])])] : [_h("div", {
- staticClass: "page-panel"
- }, [title ? _h("h3", {
- staticClass: "page-header"
- }, [_s(title)]) : _e(), " ", _t("default")])], " "])
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- staticClass: "table-tree",
- "class": {
- active: active
- }
- }, [_h("div", {
- staticClass: "panel-table pull-left"
- }, [_h("ul", {
- staticClass: "table-main"
- }, [_l(tables, function(t) {
- return _h("li", {
- staticClass: "table-list",
- "class": {
- active: t.active
- }
- }, [_h("span", {
- on: {
- click: function(e) {
- t.active = !t.active
- }
- }
- }, [_h("i", {
- staticClass: "fa",
- "class": {
- "fa-plus-square": !t.active,
- "fa-minus-square": t.active
- }
- }), "\n " + _s(t.name) + "\n "]), " ", _h("ul", [_l(t.columns, function(t) {
- return _h("li", [_m(0, !0), "\n " + _s(t.name) + "\n ", _h("small", [_s(t.type)])])
- })])])
- })])]), " ", _h("div", {
- staticClass: "handle pull-right",
- on: {
- click: function(t) {
- active = !active
- }
- }
- }, ["TABELE"])])
- },
- staticRenderFns: [function() {
- with(this) return _h("i", {
- staticClass: "fa fa-caret-right"
- })
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("select", {
- staticClass: "form-control",
- attrs: {
- multiple: multiple,
- placeholder: placeholder
- }
- })
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _m(0)
- },
- staticRenderFns: [function() {
- with(this) return _h("canvas")
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _m(0)
- },
- staticRenderFns: [function() {
- with(this) return _h("canvas", {
- staticClass: "canvas-text"
- })
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- domProps: {
- innerHTML: _s(output)
- }
- })
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- staticClass: "navbar navbar-default"
- }, [_h("div", {
- staticClass: "container"
- }, [_h("div", {
- staticClass: "navbar-header"
- }, [_m(0), " ", _h("router-link", {
- staticClass: "navbar-brand",
- attrs: {
- to: {
- name: "dashboard"
- }
- }
- }, [_m(1), " Baze de Date\n "])]), " ", _h("div", {
- staticClass: "navbar-collapse collapse"
- }, [admin ? _h("admin-menu") : _h("ul", {
- staticClass: "nav navbar-nav"
- }, [_h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "user.questions"
- },
- "active-class": "active"
- }
- }, [_h("a", [_h("i", {
- staticClass: "fa fa-question"
- }), " Întrebările mele"])]), " ", user.admin ? _h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "admin.dashboard"
- }
- }
- }, [_h("a", [_h("i", {
- staticClass: "fa fa-tachometer"
- }), " Administrare"])]) : _e()]), " ", " ", _h("ul", {
- staticClass: "nav navbar-nav navbar-right"
- }, [_h("li", {
- staticClass: "dropdown"
- }, [_h("a", {
- staticClass: "dropdown-toggle",
- attrs: {
- href: "#",
- "data-toggle": "dropdown"
- }
- }, ["\n " + _s(user.name) + " ", _m(2)]), " ", _h("ul", {
- staticClass: "dropdown-menu"
- }, [_h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "user.profile"
- }
- }
- }, [_m(3)]), " ", _h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "user.settings"
- }
- }
- }, [_m(4)]), " ", _m(5), " ", _h("li", [_h("a", {
- attrs: {
- href: "#"
- },
- on: {
- click: function(t) {
- t.preventDefault(), logout(t)
- }
- }
- }, [_m(6), " Logout"])])])])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("button", {
- staticClass: "navbar-toggle",
- attrs: {
- type: "button",
- "data-toggle": "collapse",
- "data-target": ".navbar-collapse"
- }
- }, [_h("span", {
- staticClass: "sr-only"
- }, ["Toggle navigation"]), " ", _h("span", {
- staticClass: "icon-bar"
- }), " ", _h("span", {
- staticClass: "icon-bar"
- }), " ", _h("span", {
- staticClass: "icon-bar"
- })])
- }, function() {
- with(this) return _h("i", {
- staticClass: "fa fa-fw fa-database"
- })
- }, function() {
- with(this) return _h("b", {
- staticClass: "caret"
- })
- }, function() {
- with(this) return _h("a", [_h("i", {
- staticClass: "fa fa-user fa-fw"
- }), " Profil"])
- }, function() {
- with(this) return _h("a", [_h("i", {
- staticClass: "fa fa-cog fa-fw"
- }), " Setări"])
- }, function() {
- with(this) return _h("li", {
- staticClass: "divider"
- })
- }, function() {
- with(this) return _h("i", {
- staticClass: "fa fa-sign-out fa-fw"
- })
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("panel", {
- attrs: {
- title: "Dashboard"
- }
- }, [_h("button", {
- staticClass: "btn btn-default",
- attrs: {
- type: "button"
- },
- on: {
- click: reevaluate
- }
- }, ["Reevaluează"])])
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("panel", {
- attrs: {
- title: "Capitole",
- loading: ""
- }
- }, [_h("router-link", {
- staticClass: "btn btn-default btn-sm m-b-md",
- attrs: {
- to: {
- name: "admin.chapters.create"
- }
- }
- }, [_m(0), " Adaugă\n "]), " ", _h("div", {
- staticClass: "row"
- }, [_h("div", {
- staticClass: "col-md-6"
- }, [chapters.length > 0 ? _h("div", {
- staticClass: "table-responsive"
- }, [_h("table", {
- staticClass: "table table-striped table-bordered table-hover"
- }, [_m(1), " ", _h("transition-group", {
- attrs: {
- name: "list",
- tag: "tbody"
- }
- }, [_l(chapters, function(t) {
- return _h("tr", {
- key: t.id,
- attrs: {
- id: t.id
- }
- }, [_h("td", {
- staticClass: "column-name user-select-none"
- }, [_h("i", {
- staticClass: "fa fa-square m-r-xs",
- style: {
- color: t.color || "transparent"
- },
- attrs: {
- "aria-hidden": "true"
- }
- }), "\n " + _s(t.name) + "\n "]), " ", _h("td", [_s(t.questions_count || 0)]), " ", _h("td", {
- staticClass: "column-actions"
- }, [_h("action-primary", {
- attrs: {
- to: {
- name: "admin.chapters.edit",
- params: {
- id: t.id
- }
- },
- icon: "fa-pencil",
- title: "Editează"
- }
- }), " ", _h("action-danger", {
- attrs: {
- action: destroy,
- item: t,
- icon: "fa-trash-o",
- title: "Șterge"
- }
- })])])
- })])]), " ", _m(2)]) : _h("div", ["Nici un capitol."]), " "])])]), " ", _h("router-view", {
- staticClass: "child"
- })])
- },
- staticRenderFns: [function() {
- with(this) return _h("i", {
- staticClass: "fa fa-plus fa-btn"
- })
- }, function() {
- with(this) return _h("thead", [_h("tr", [_h("th", {
- attrs: {
- style: "padding-left: 28px;"
- }
- }, ["Nume"]), " ", _h("th", ["Întrebări"]), " ", _h("th")])])
- }, function() {
- with(this) return _h("div", {
- staticClass: "help-block"
- }, ["Pentru a sorta capitolele, dă click pe numele unei capitol și mută-l."])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("transition", {
- attrs: {
- name: "fade",
- mode: "out-in"
- }
- }, [$root.loading ? _e() : _h("div", [_h("div", {
- staticClass: "row m-t-sm"
- }, [_l(chapters, function(t) {
- return _h("div", {
- staticClass: "col-lg-4 col-md-6 col-sm-6 col-xs-12"
- }, [_h("chapter-card", {
- attrs: {
- chapter: t
- }
- })])
- }), " ", 0 === chapters.length ? _h("div", {
- staticClass: "text-center"
- }, [_m(0)]) : _e()])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("h4", ["Nu a fost gasita nici un capitol."])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- ref: "modal",
- staticClass: "modal fade",
- attrs: {
- "data-backdrop": "static",
- tabindex: "-1"
- }
- }, [_h("div", {
- staticClass: "modal-dialog"
- }, [_h("div", {
- staticClass: "modal-content"
- }, [_h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_m(0), " ", _h("div", {
- staticClass: "modal-body"
- }, [_h("div", {
- staticClass: "form-group"
- }, [_m(1), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.name,
- expression: "form.name"
- }],
- staticClass: "form-control",
- attrs: {
- type: "text"
- },
- domProps: {
- value: _s(form.name)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.name = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "name"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("textarea", {
- directives: [{
- name: "model",
- value: form.description,
- expression: "form.description"
- }],
- staticClass: "form-control",
- attrs: {
- rows: "4"
- },
- domProps: {
- value: _s(form.description)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.description = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "description"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(3), " ", _h("div", {
- staticClass: "input-group"
- }, [_h("div", {
- staticClass: "input-group-btn"
- }, [_h("div", {
- staticClass: "input-btn-color"
- }, [_h("input", {
- directives: [{
- name: "model",
- value: form.color,
- expression: "form.color"
- }],
- attrs: {
- type: "color"
- },
- domProps: {
- value: _s(form.color)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.color = t.target.value)
- }
- }
- })])]), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.color,
- expression: "form.color"
- }],
- staticClass: "form-control",
- attrs: {
- type: "text"
- },
- domProps: {
- value: _s(form.color)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.color = t.target.value)
- }
- }
- })]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "color"
- }
- })])]), " ", _h("div", {
- staticClass: "modal-footer"
- }, [_h("button", {
- staticClass: "btn btn-success",
- attrs: {
- disabled: form.busy,
- type: "submit"
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _e(), "\n Salvează\n "])])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("div", {
- staticClass: "modal-header"
- }, [_h("button", {
- staticClass: "close",
- attrs: {
- type: "button",
- "data-dismiss": "modal"
- }
- }, ["×"]), " ", _h("h4", {
- staticClass: "modal-title"
- }, ["Editează capitol"])])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Nume"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Descriere"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Culoare"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("table-tree"), " ", _h("panel", {
- attrs: {
- title: "Adaugă întrebare",
- loading: ""
- }
- }, [_h("alert-success", {
- attrs: {
- form: form,
- message: "Întrebarea a fost adăugată!"
- }
- }), " ", _h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_h("div", {
- staticClass: "form-group"
- }, [_m(0), " ", _h("selectize", {
- directives: [{
- name: "model",
- value: form.chapter,
- expression: "form.chapter"
- }],
- attrs: {
- options: chapters,
- "close-after-select": !0
- },
- domProps: {
- value: form.chapter
- },
- on: {
- input: function(t) {
- form.chapter = t
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "chapter"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(1), " ", _h("textarea", {
- directives: [{
- name: "model",
- value: form.question,
- expression: "form.question"
- }],
- staticClass: "form-control",
- domProps: {
- value: _s(form.question)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.question = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "question"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("query-input", {
- directives: [{
- name: "model",
- value: form.query,
- expression: "form.query"
- }],
- domProps: {
- value: form.query
- },
- on: {
- input: function(t) {
- form.query = t
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "query"
- }
- })]), " ", _h("div", {
- staticClass: "clearfix"
- }, [_h("button", {
- staticClass: "btn btn-success pull-left",
- attrs: {
- disabled: form.busy,
- type: "button"
- },
- on: {
- click: function(t) {
- runQuery(form)
- }
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-play fa-btn"
- }), " ", "\n Execută\n "]), " ", _h("button", {
- staticClass: "btn btn-primary pull-right",
- attrs: {
- disabled: form.busy,
- type: "submit"
- },
- on: {
- click: save
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-floppy-o fa-btn"
- }), " ", "\n Salvează\n "])])])]), " ", queryResults && queryResults.columns ? _h("panel", [_h("query-results", {
- attrs: {
- results: queryResults
- }
- })]) : _e()])
- },
- staticRenderFns: [function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Capitol"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Întrebare"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Răspuns"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- ref: "modal",
- staticClass: "modal fade",
- attrs: {
- "data-backdrop": "static",
- tabindex: "-1"
- }
- }, [_h("div", {
- staticClass: "modal-dialog"
- }, [_h("div", {
- staticClass: "modal-content"
- }, [_h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_m(0), " ", _h("div", {
- staticClass: "modal-body"
- }, [_h("div", {
- staticClass: "form-group"
- }, [_m(1), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.name,
- expression: "form.name"
- }],
- ref: "name",
- staticClass: "form-control",
- attrs: {
- type: "text"
- },
- domProps: {
- value: _s(form.name)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.name = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "name"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("textarea", {
- directives: [{
- name: "model",
- value: form.description,
- expression: "form.description"
- }],
- staticClass: "form-control",
- attrs: {
- rows: "4"
- },
- domProps: {
- value: _s(form.description)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.description = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "description"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(3), " ", _h("div", {
- staticClass: "input-group"
- }, [_h("div", {
- staticClass: "input-group-btn"
- }, [_h("div", {
- staticClass: "input-btn-color"
- }, [_h("input", {
- directives: [{
- name: "model",
- value: form.color,
- expression: "form.color"
- }],
- attrs: {
- type: "color"
- },
- domProps: {
- value: _s(form.color)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.color = t.target.value)
- }
- }
- })])]), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.color,
- expression: "form.color"
- }],
- staticClass: "form-control",
- attrs: {
- type: "text"
- },
- domProps: {
- value: _s(form.color)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.color = t.target.value)
- }
- }
- })]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "color"
- }
- })])]), " ", _h("div", {
- staticClass: "modal-footer"
- }, [_h("button", {
- staticClass: "btn btn-success",
- attrs: {
- disabled: form.busy,
- type: "submit"
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _e(), "\n Salvează\n "])])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("div", {
- staticClass: "modal-header"
- }, [_h("button", {
- staticClass: "close",
- attrs: {
- type: "button",
- "data-dismiss": "modal"
- }
- }, ["×"]), " ", _h("h4", {
- staticClass: "modal-title"
- }, ["Adaugă capitol"])])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Nume"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Descriere"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Culoare"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("panel", {
- attrs: {
- title: "Întrebări"
- }
- }, [_h("datatable", {
- attrs: {
- columns: columns,
- actions: itemActions,
- url: url,
- params: params
- }
- })])
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("table-tree"), " ", _h("panel", {
- attrs: {
- title: "Editează întrebare",
- loading: ""
- }
- }, [_h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_h("div", {
- staticClass: "form-group"
- }, [_m(0), " ", form.chapter ? _h("selectize", {
- directives: [{
- name: "model",
- value: form.chapter,
- expression: "form.chapter"
- }],
- attrs: {
- options: chapters,
- "close-after-select": !0
- },
- domProps: {
- value: form.chapter
- },
- on: {
- input: function(t) {
- form.chapter = t
- }
- }
- }) : _e(), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "chapter"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_h("label", {
- staticClass: "control-label"
- }, ["Întrebare ", question ? _h("span", ["(" + _s(question.user.name) + ")"]) : _e()]), " ", _h("textarea", {
- directives: [{
- name: "model",
- value: form.question,
- expression: "form.question"
- }],
- staticClass: "form-control",
- domProps: {
- value: _s(form.question)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.question = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "question"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(1), _m(2), " ", _h("div", {
- staticClass: "radio-inline"
- }, [_h("label", [_h("input", {
- attrs: {
- type: "radio",
- value: "1"
- },
- domProps: {
- checked: _q(form.report_resolved, "1")
- },
- on: {
- change: function(t) {
- form.report_resolved = "1"
- }
- }
- }), "\n corectă\n "])]), " ", _h("div", {
- staticClass: "radio-inline"
- }, [_h("label", [_h("input", {
- attrs: {
- type: "radio",
- value: "-1"
- },
- domProps: {
- checked: _q(form.report_resolved, "-1")
- },
- on: {
- change: function(t) {
- form.report_resolved = "-1"
- }
- }
- }), "\n greșită\n "])]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "report_resolved"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(3), " ", form.query ? _h("query-input", {
- directives: [{
- name: "model",
- value: form.query,
- expression: "form.query"
- }],
- domProps: {
- value: form.query
- },
- on: {
- input: function(t) {
- form.query = t
- }
- }
- }) : _e(), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "query"
- }
- })]), " ", _h("div", {
- staticClass: "clearfix"
- }, [_h("button", {
- staticClass: "btn btn-success pull-left",
- attrs: {
- disabled: form.busy,
- type: "button"
- },
- on: {
- click: function(t) {
- runQuery(form)
- }
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-play fa-btn"
- }), " ", "\n Execută\n "]), " ", _h("button", {
- staticClass: "btn btn-primary pull-right",
- attrs: {
- disabled: form.busy,
- type: "submit"
- },
- on: {
- click: save
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-floppy-o fa-btn"
- }), " ", "\n Salvează\n "])])])]), " ", queryResults && queryResults.columns ? _h("panel", [_h("query-results", {
- attrs: {
- results: queryResults
- }
- })]) : _e()])
- },
- staticRenderFns: [function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Capitol"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Această întrebare este"])
- }, function() {
- with(this) return _h("br")
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Răspuns"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- ref: "modal",
- staticClass: "modal fade",
- attrs: {
- "data-backdrop": "static",
- tabindex: "-1"
- }
- }, [_h("div", {
- staticClass: "modal-dialog"
- }, [_h("div", {
- staticClass: "modal-content"
- }, [_h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_m(0), " ", _h("div", {
- staticClass: "modal-body"
- }, [_h("div", {
- staticClass: "form-group"
- }, [_m(1), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.name,
- expression: "form.name"
- }],
- ref: "name",
- staticClass: "form-control",
- attrs: {
- type: "text"
- },
- domProps: {
- value: _s(form.name)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.name = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "name"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.username,
- expression: "form.username"
- }],
- staticClass: "form-control",
- attrs: {
- type: "text"
- },
- domProps: {
- value: _s(form.username)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.username = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "username"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(3), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.password,
- expression: "form.password"
- }],
- staticClass: "form-control",
- attrs: {
- type: "password"
- },
- domProps: {
- value: _s(form.password)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.password = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "password"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(4), " ", _h("select", {
- directives: [{
- name: "model",
- value: form.user_role,
- expression: "form.user_role"
- }],
- staticClass: "form-control",
- on: {
- change: function(t) {
- form.user_role = Array.prototype.filter.call(t.target.options, function(t) {
- return t.selected
- }).map(function(t) {
- return "_value" in t ? t._value : t.value
- })[0]
- }
- }
- }, [_m(5), " ", _m(6)]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "role"
- }
- })])]), " ", _h("div", {
- staticClass: "modal-footer"
- }, [_h("button", {
- staticClass: "btn btn-success",
- attrs: {
- disabled: form.busy,
- type: "submit"
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _e(), "\n Salvează\n "])])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("div", {
- staticClass: "modal-header"
- }, [_h("button", {
- staticClass: "close",
- attrs: {
- type: "button",
- "data-dismiss": "modal"
- }
- }, ["×"]), " ", _h("h4", {
- staticClass: "modal-title"
- }, ["Adaugă utilizator"])])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Nume"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Utilizator"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Parolă"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Rol"])
- }, function() {
- with(this) return _h("option", {
- attrs: {
- value: "user"
- }
- }, ["User"])
- }, function() {
- with(this) return _h("option", {
- attrs: {
- value: "admin"
- }
- }, ["Admin"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("panel", {
- staticClass: "users",
- attrs: {
- title: "Utilizatori"
- }
- }, [_h("datatable", {
- attrs: {
- columns: columns,
- actions: itemActions,
- url: "/api/admin/users"
- }
- })]), " ", _h("router-view", {
- staticClass: "child"
- })])
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- ref: "modal",
- staticClass: "modal fade",
- attrs: {
- "data-backdrop": "static",
- tabindex: "-1"
- }
- }, [_h("div", {
- staticClass: "modal-dialog"
- }, [_h("div", {
- staticClass: "modal-content"
- }, [_h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_m(0), " ", _h("div", {
- staticClass: "modal-body"
- }, [_h("div", {
- staticClass: "form-group"
- }, [_m(1), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.name,
- expression: "form.name"
- }],
- staticClass: "form-control",
- attrs: {
- type: "text"
- },
- domProps: {
- value: _s(form.name)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.name = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "name"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.username,
- expression: "form.username"
- }],
- staticClass: "form-control",
- attrs: {
- type: "text"
- },
- domProps: {
- value: _s(form.username)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.username = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "username"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(3), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.password,
- expression: "form.password"
- }],
- staticClass: "form-control",
- attrs: {
- type: "password"
- },
- domProps: {
- value: _s(form.password)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.password = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "password"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(4), " ", _h("select", {
- directives: [{
- name: "model",
- value: form.user_role,
- expression: "form.user_role"
- }],
- staticClass: "form-control",
- on: {
- change: function(t) {
- form.user_role = Array.prototype.filter.call(t.target.options, function(t) {
- return t.selected
- }).map(function(t) {
- return "_value" in t ? t._value : t.value
- })[0]
- }
- }
- }, [_m(5), " ", _m(6)]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "role"
- }
- })])]), " ", _h("div", {
- staticClass: "modal-footer"
- }, [_h("button", {
- staticClass: "btn btn-success",
- attrs: {
- disabled: form.busy,
- type: "submit"
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _e(), "\n Salvează\n "])])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("div", {
- staticClass: "modal-header"
- }, [_h("button", {
- staticClass: "close",
- attrs: {
- type: "button",
- "data-dismiss": "modal"
- }
- }, ["×"]), " ", _h("h4", {
- staticClass: "modal-title"
- }, ["Editează utilizator"])])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Nume"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Utilizator"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Parolă"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Rol"])
- }, function() {
- with(this) return _h("option", {
- attrs: {
- value: "user"
- }
- }, ["User"])
- }, function() {
- with(this) return _h("option", {
- attrs: {
- value: "admin"
- }
- }, ["Admin"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("panel", {
- attrs: {
- title: "Tabele",
- loading: ""
- }
- }, [_h("alert-errors", {
- attrs: {
- form: form,
- message: ""
- }
- }), " ", _h("div", {
- staticClass: "form-group"
- }, [_h("query-input", {
- directives: [{
- name: "model",
- value: form.query,
- expression: "form.query"
- }],
- domProps: {
- value: form.query
- },
- on: {
- input: function(t) {
- form.query = t
- }
- }
- })]), " ", _h("button", {
- staticClass: "btn btn-primary",
- attrs: {
- disabled: form.busy,
- type: "submit"
- },
- on: {
- click: store
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-play fa-btn"
- }), " ", "\n Execută\n "])]), " ", _h("panel", {
- directives: [{
- name: "show",
- value: tables.length > 0,
- expression: "tables.length > 0"
- }],
- attrs: {
- loading: ""
- }
- }, [_h("table", {
- staticClass: "table table-striped table-bordered table-hover"
- }, [_m(0), " ", _h("transition-group", {
- attrs: {
- name: "list",
- tag: "tbody"
- }
- }, [_l(tables, function(t) {
- return _h("tr", {
- key: t.name
- }, [_h("td", [_s(t.name)]), " ", _h("td", [t.granted ? _h("action-danger", {
- attrs: {
- action: revoke,
- item: t,
- icon: "fa-minus-circle",
- title: "Revocă acessul"
- }
- }) : _h("action-success", {
- attrs: {
- action: grant,
- item: t,
- icon: "fa-plus-circle",
- title: "Permite acessul"
- }
- }), " "]), " ", _h("td", [_h("action-danger", {
- attrs: {
- action: drop,
- item: t,
- icon: "fa-trash-o",
- title: "Șterge"
- }
- })])])
- })])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("thead", [_h("tr", [_h("th", ["Tabel"]), " ", _h("th", ["Permisiuni"]), " ", _h("th", ["Acțiuni"])])])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("panel", {
- attrs: {
- loading: ""
- }
- }, [_h("h3", ["\n " + _s(user.name) + " ", "admin.users.answers" == $route.name ? _h("span", {
- attrs: {
- style: "color: #879096; font-size: 18px;"
- }
- }, ["(" + _s(chapterName) + ")"]) : _e(), " ", _m(0), " ", _h("h4", {
- staticClass: "help-block",
- attrs: {
- style: "color: #879096"
- }
- }, [_s(user.username)])])]), " ", user && chapters.length > 0 ? _h("router-view", {
- staticClass: "child",
- attrs: {
- user: user,
- chapters: chapters
- }
- }) : _e()])
- },
- staticRenderFns: [function() {
- with(this) return _h("hr")
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- staticClass: "container"
- }, [_h("div", {
- staticClass: "row"
- }, [_m(0), " ", _h("div", {
- staticClass: "col-md-9"
- }, [_h("div", {
- staticClass: "tab-content"
- }, [_h("password")])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("div", {
- staticClass: "col-md-3"
- }, [_h("div", {
- staticClass: "panel panel-default panel-settings"
- }, [_h("div", {
- staticClass: "panel-heading"
- }, ["Setări"]), " ", _h("div", {
- staticClass: "panel-body"
- }, [_h("ul", {
- staticClass: "nav tabs-stacked"
- }, [_h("li", {
- staticClass: "active"
- }, [_h("a", {
- attrs: {
- href: "#security",
- "data-toggle": "tab",
- "aria-expanded": "false"
- }
- }, [_h("i", {
- staticClass: "fa fa-fw fa-lock"
- }), " Parolă\n "])])])])])])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("panel", {
- attrs: {
- loading: ""
- }
- }, [_l(answers, function(t) {
- return _h("div", {
- staticClass: "panel panel-default"
- }, [_h("div", {
- staticClass: "panel-heading"
- }, [_h("h4", {
- staticClass: "panel-title"
- }, [_h("div", {
- staticClass: "label pull-right",
- "class": {
- "label-danger": !+t.solved,
- "label-success": +t.solved
- }
- }, [_s(+t.solved ? "Corect" : "Gresit")]), " ", _h("a", {
- staticClass: "collapsed",
- attrs: {
- style: "display: block;",
- "data-toggle": "collapse",
- href: "#question-" + t.question.id
- }
- }, ["\n Intrebarea #" + _s(t.question.id) + "\n "])])]), " ", _h("div", {
- staticClass: "panel-collapse collapse",
- attrs: {
- id: "question-" + t.question.id
- }
- }, [_h("div", {
- staticClass: "panel-body"
- }, ["\n " + _s(t.question.question), _m(0), _m(1), " ", _m(2), " ", _h("pre", [_s(t.question.answer)]), " ", _h("label", [_s(user.name) + ":"]), " ", _h("pre", [_s(t.answer)]), " ", +t.solved ? _e() : _h("button", {
- staticClass: "btn btn-sm btn-default",
- attrs: {
- type: "button",
- disabled: t.loading
- },
- on: {
- click: function(e) {
- compare(t)
- }
- }
- }, [t.loading ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _e(), "\n Compara\n "])]), " ", t.userSet && t.userSet.columns ? _h("div", {
- staticClass: "m-l-md m-r-md"
- }, [_h("query-results", {
- attrs: {
- results: t.userSet,
- correct: t.correctSet
- }
- })]) : _e()])])
- })])
- },
- staticRenderFns: [function() {
- with(this) return _h("br")
- }, function() {
- with(this) return _h("br")
- }, function() {
- with(this) return _h("label", ["Corect:"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("transition", {
- attrs: {
- name: "fade",
- mode: "out-in"
- }
- }, [$root.loading ? _e() : _h("div", [_h("div", {
- staticClass: "row m-t-sm"
- }, [_l(chapters, function(t) {
- return _h("div", {
- staticClass: "col-lg-4 col-md-6 col-sm-6 col-xs-12"
- }, [_h("chapter-card", {
- attrs: {
- chapter: t
- }
- })])
- }), " ", 0 === chapters.length ? _h("div", {
- staticClass: "text-center"
- }, [_m(0)]) : _e()])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("h4", ["Nu a fost gasita nici un capitol."])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("panel", {
- attrs: {
- title: "Setări",
- loading: ""
- }
- }, [_m(0), " ", _h("div", {
- staticClass: "row"
- }, [_h("div", {
- staticClass: "col-md-6"
- }, [_h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_h("div", {
- staticClass: "tab-content"
- }, [_h("general", {
- staticClass: "tab-pane m-t-md active",
- attrs: {
- form: form,
- id: "tab1"
- }
- }), " ", _h("steps", {
- directives: [{
- name: "model",
- value: form.steps,
- expression: "form.steps"
- }],
- staticClass: "tab-pane m-t-md",
- attrs: {
- id: "tab2"
- },
- domProps: {
- value: form.steps
- },
- on: {
- input: function(t) {
- form.steps = t
- }
- }
- }), " ", _h("reports", {
- staticClass: "tab-pane m-t-md",
- attrs: {
- form: form,
- id: "tab3"
- }
- })])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("ul", {
- staticClass: "nav nav-tabs"
- }, [_h("li", {
- staticClass: "active"
- }, [_h("a", {
- attrs: {
- href: "#tab1",
- "data-toggle": "tab"
- }
- }, ["General"])]), " ", _h("li", [_h("a", {
- attrs: {
- href: "#tab2",
- "data-toggle": "tab"
- }
- }, ["Praguri"])]), " ", _h("li", [_h("a", {
- attrs: {
- href: "#tab3",
- "data-toggle": "tab"
- }
- }, ["Raportări"])])])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- staticClass: "tab-pane active",
- attrs: {
- id: "security"
- }
- }, [_h("div", {
- staticClass: "panel panel-default"
- }, [_m(0), " ", _h("div", {
- staticClass: "panel-body"
- }, [_h("form", {
- staticClass: "form-horizontal",
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_h("alert-success", {
- attrs: {
- form: form,
- message: "Parola a fost actualizată!"
- }
- }), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(1), " ", _h("div", {
- staticClass: "col-md-6"
- }, [_h("input", {
- directives: [{
- name: "model",
- value: form.current_password,
- expression: "form.current_password"
- }],
- staticClass: "form-control",
- attrs: {
- type: "password"
- },
- domProps: {
- value: _s(form.current_password)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.current_password = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "current_password"
- }
- })])]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("div", {
- staticClass: "col-md-6"
- }, [_h("input", {
- directives: [{
- name: "model",
- value: form.password,
- expression: "form.password"
- }],
- staticClass: "form-control",
- attrs: {
- type: "password"
- },
- domProps: {
- value: _s(form.password)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.password = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "password"
- }
- })])]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(3), " ", _h("div", {
- staticClass: "col-md-6"
- }, [_h("input", {
- directives: [{
- name: "model",
- value: form.password_confirmation,
- expression: "form.password_confirmation"
- }],
- staticClass: "form-control",
- attrs: {
- type: "password"
- },
- domProps: {
- value: _s(form.password_confirmation)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.password_confirmation = t.target.value)
- }
- }
- })])]), " ", _h("div", {
- staticClass: "form-group"
- }, [_h("div", {
- staticClass: "col-md-offset-3 col-md-6"
- }, [_h("button", {
- staticClass: "btn btn-success",
- attrs: {
- disabled: form.busy,
- type: "submit"
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _e(), "\n Salvează\n "])])])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("div", {
- staticClass: "panel-heading"
- }, ["Parolă"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "col-md-3 control-label"
- }, ["Parola Curentă"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "col-md-3 control-label"
- }, ["Noua Parolă"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "col-md-3 control-label"
- }, ["Confirmă Parola"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- staticClass: "chapter-card"
- }, [_h("div", {
- staticClass: "mdl-card mdl-shadow--2dp"
- }, [_h("div", {
- staticClass: "mdl-card__title mdl-card--expand",
- style: {
- "background-color": chapter.color
- }
- }, [_h("h2", {
- staticClass: "mdl-card__title-text"
- }, [_h("span", [_s(chapter.name) + "\n ", _h("span", {
- staticClass: "question-count"
- }, ["\n [" + _s(chapter.questions_answered ? chapter.questions_answered.count : 0) + "/" + _s(chapter.questions_count ? chapter.questions_count.count : 0) + "]\n "])])])]), " ", _h("div", {
- staticClass: "mdl-card__supporting-text"
- }, ["\n " + _s(description) + "\n "]), " ", _h("div", {
- staticClass: "mdl-card__actions mdl-card--border"
- }, [_h("router-link", {
- staticClass: "mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect mdl-button--accent",
- attrs: {
- to: {
- name: "quiz",
- params: {
- id: chapter.id
- }
- }
- }
- }, ["\n Întrebari\n "]), " ", _h("router-link", {
- staticClass: "pull-right mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect",
- attrs: {
- to: {
- name: "chapter.statistics",
- params: {
- id: chapter.id
- }
- }
- }
- }, ["\n Statistici\n "])])])])
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("panel", {
- "class": {
- "cannot-report": 1 == question.report_resolved
- }
- }, [_h("span", [_s(question.question)]), " ", _m(0), " ", _h("div", {
- staticClass: "clearfix"
- }, [_h("div", {
- staticClass: "label label-default"
- }, ["\n " + _s(question.chapter.name) + "\n "]), " ", _h("div", {
- staticClass: "label label-success m-l-xs"
- }, ["\n " + _s(question.solved) + " / " + _s(question.asked) + "\n "]), " ", 1 != question.report_resolved ? _h("div", {
- staticClass: "label label-danger m-l-xs"
- }, ["\n " + _s(question.reported) + "\n "]) : _e(), " ", _h("div", {
- staticClass: "pull-right"
- }, [canBeDeleted ? _h("span", {
- staticClass: "delete-action"
- }, [needToAddQuestion ? [_m(1)] : [canDelete ? _h("i", {
- staticClass: "fa fa-times",
- attrs: {
- "aria-hidden": "true",
- title: "Șterge această întrebare"
- },
- on: {
- click: destroy
- }
- }) : _h("i", {
- staticClass: "fa fa-times disabled",
- attrs: {
- "aria-hidden": "true",
- title: "Trebuie să mai răspunzi la întrebări din acest capitol pentru a putea șterge."
- }
- }), " "], " "]) : _e(), " ", 1 == question.report_resolved ? _h("i", {
- staticClass: "fa fa-check-square-o m-l-sm",
- attrs: {
- "aria-hidden": "true",
- title: "Aceasta intrebare a fost aprobata de un administrator si nu mai poate fi raportata."
- }
- }) : _e()])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("hr")
- }, function() {
- with(this) return _h("i", {
- staticClass: "fa fa-times disabled",
- attrs: {
- "aria-hidden": "true",
- title: "Trebuie să adaugi o întrebare pentru a putea șterge."
- }
- })
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("ul", {
- staticClass: "nav navbar-nav"
- }, [_h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "admin.dashboard"
- },
- exact: "",
- "active-class": "active"
- }
- }, [_m(0)]), " ", _h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "admin.chapters.index"
- },
- "active-class": "active"
- }
- }, [_m(1)]), " ", _h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "admin.questions.index"
- },
- "active-class": "active"
- }
- }, [_m(2)]), " ", _h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "admin.tables"
- },
- "active-class": "active"
- }
- }, [_m(3)]), " ", _h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "admin.users.index"
- },
- "active-class": "active"
- }
- }, [_m(4)]), " ", _h("router-link", {
- attrs: {
- tag: "li",
- to: {
- name: "admin.settings"
- },
- "active-class": "active"
- }
- }, [_m(5)])])
- },
- staticRenderFns: [function() {
- with(this) return _h("a", [_h("i", {
- staticClass: "fa fa-tachometer"
- }), " Dashboard"])
- }, function() {
- with(this) return _h("a", [_h("i", {
- staticClass: "fa fa-list-ul"
- }), " Capitole"])
- }, function() {
- with(this) return _h("a", [_h("i", {
- staticClass: "fa fa fa-question"
- }), " Întrebări"])
- }, function() {
- with(this) return _h("a", [_h("i", {
- staticClass: "fa fa-table"
- }), " Tabele"])
- }, function() {
- with(this) return _h("a", [_h("i", {
- staticClass: "fa fa-users"
- }), " Utilizatori"])
- }, function() {
- with(this) return _h("a", [_h("i", {
- staticClass: "fa fa-cogs"
- }), " Setări"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- "class": wrapperClass
- }, [_h("table", {
- ref: "table",
- "class": tableClass
- }, [_h("thead", [_h("tr", [_l(columns, function(t) {
- return [t.visible ? [isSpecialColumn(t.name) ? [_h("th", {
- "class": t.titleClass,
- attrs: {
- id: t.name
- }
- }, ["\n " + _s(t.title || "") + "\n "])] : [_h("th", {
- "class": t.titleClass,
- attrs: {
- id: "_" + t.name
- }
- }, ["\n " + _s(_f("capitalize")(getTitle(t))) + "\n "])], " "] : _e()]
- })])])])])
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", {
- staticClass: "chapter-card"
- }, [_h("div", {
- staticClass: "mdl-card mdl-shadow--2dp"
- }, [_h("div", {
- staticClass: "mdl-card__title mdl-card--expand",
- style: {
- "background-color": chapter.color
- }
- }, [_h("h2", {
- staticClass: "mdl-card__title-text"
- }, [_h("span", [_s(chapter.name) + "\n ", _h("span", {
- staticClass: "question-count"
- }, ["\n [" + _s(chapter.questions_answered_count ? chapter.questions_answered_count.count : 0) + "/" + _s(chapter.questions_count ? chapter.questions_count.count : 0) + "]\n "])])])]), " ", _h("div", {
- staticClass: "mdl-card__supporting-text"
- }, ["\n " + _s(description) + "\n "]), " ", _h("div", {
- staticClass: "mdl-card__actions mdl-card--border"
- }, [_h("router-link", {
- staticClass: "mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect mdl-button--accent",
- attrs: {
- to: {
- name: "admin.users.answers",
- params: {
- id: $route.params.id,
- cid: chapter.id
- }
- }
- }
- }, ["\n Răspunsuri\n "])])])])
- },
- staticRenderFns: []
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("button", {
- staticClass: "btn btn-default btn-sm m-b-md",
- attrs: {
- type: "button"
- },
- on: {
- click: add
- }
- }, [_m(0), " Adaugă\n "]), " ", _h("div", {
- staticClass: "row"
- }, [_h("div", {
- staticClass: "col-md-8"
- }, [_h("table", {
- staticClass: "table table-striped table-bordered table-hover"
- }, [_m(1), " ", _h("transition-group", {
- attrs: {
- name: "list",
- tag: "tbody"
- }
- }, [_l(value, function(t, e) {
- return _h("tr", {
- key: e
- }, [_h("td", ["#" + _s(e + 1)]), " ", _h("td", [_s(t)]), " ", _h("td", {
- staticClass: "column-actions"
- }, [_h("action-primary", {
- attrs: {
- action: edit,
- item: e,
- icon: "fa-pencil",
- title: "Editează"
- }
- }), " ", value.length > 1 ? _h("action-danger", {
- attrs: {
- action: destroy,
- item: e,
- icon: "fa-trash-o",
- title: "Șterge"
- }
- }) : _e()])])
- })])])])]), " ", _m(2), " ", _h("div", {
- ref: "modal",
- staticClass: "modal fade",
- attrs: {
- "data-backdrop": "static",
- tabindex: "-1"
- }
- }, [_h("div", {
- staticClass: "modal-dialog"
- }, [_h("div", {
- staticClass: "modal-content"
- }, [_h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_h("div", {
- staticClass: "modal-header"
- }, [_m(3), " ", _h("h4", {
- staticClass: "modal-title"
- }, ["Editează pragul #" + _s(this.form.index + 1)])]), " ", _h("div", {
- staticClass: "modal-body"
- }, [_h("div", {
- staticClass: "form-group m-b-0"
- }, [_m(4), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.step,
- expression: "form.step"
- }],
- staticClass: "form-control",
- attrs: {
- type: "number",
- min: 1
- },
- domProps: {
- value: _s(form.step)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.step = _n(t.target.value))
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "step"
- }
- })])]), " ", _m(5)])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("i", {
- staticClass: "fa fa-plus fa-btn"
- })
- }, function() {
- with(this) return _h("thead", [_h("tr", [_h("th", ["Prag"]), " ", _h("th", ["Nr. Întrebări"]), " ", _h("th")])])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Prag = numărul de întrebări un utilizator trebuie să răspundă corect pentru a putea adauga o nouă întrebare.\n "])
- }, function() {
- with(this) return _h("button", {
- staticClass: "close",
- attrs: {
- type: "button",
- "data-dismiss": "modal"
- }
- }, ["×"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Nr. Întrebări"])
- }, function() {
- with(this) return _h("div", {
- staticClass: "modal-footer"
- }, [_h("button", {
- staticClass: "btn btn-success",
- attrs: {
- type: "submit"
- }
- }, ["\n Salvează\n "])])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("div", {
- staticClass: "navbar navbar-default"
- }, [_h("div", {
- staticClass: "container"
- }, [_h("div", {
- staticClass: "navbar-header"
- }, [_h("router-link", {
- staticClass: "navbar-brand",
- attrs: {
- to: "/"
- }
- }, [_m(0), " Baze de Date\n "])])])]), " ", _h("div", {
- staticClass: "container"
- }, [_h("div", {
- staticClass: "col-sm-8 col-lg-6 col-sm-offset-2 col-lg-offset-3"
- }, [_h("div", {
- staticClass: "panel panel-default"
- }, [_m(1), " ", _h("div", {
- staticClass: "panel-body"
- }, [_h("form", {
- staticClass: "form-horizontal",
- on: {
- submit: function(t) {
- t.preventDefault(), login(t)
- }
- }
- }, [form.errors.has("error") ? _h("alert-error", {
- attrs: {
- form: form
- }
- }) : _e(), " ", " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("div", {
- staticClass: "col-md-7"
- }, [_h("input", {
- directives: [{
- name: "model",
- value: form.username,
- expression: "form.username"
- }],
- ref: "username",
- staticClass: "form-control",
- attrs: {
- type: "text",
- name: "username"
- },
- domProps: {
- value: _s(form.username)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.username = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "username"
- }
- })])]), " ", " ", _h("div", {
- staticClass: "form-group"
- }, [_m(3), " ", _h("div", {
- staticClass: "col-md-7"
- }, [_h("input", {
- directives: [{
- name: "model",
- value: form.password,
- expression: "form.password"
- }],
- staticClass: "form-control",
- attrs: {
- type: "password",
- name: "password"
- },
- domProps: {
- value: _s(form.password)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.password = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "password"
- }
- })])]), " ", " ", _h("div", {
- staticClass: "form-group"
- }, [_h("div", {
- staticClass: "col-md-7 col-md-offset-3"
- }, [_h("div", {
- staticClass: "checkbox"
- }, [_h("label", [_h("input", {
- attrs: {
- type: "checkbox",
- name: "remember",
- value: "1"
- },
- domProps: {
- checked: Array.isArray(form.remember) ? _i(form.remember, "1") > -1 : _q(form.remember, !0)
- },
- on: {
- change: function(t) {
- var e = form.remember,
- a = t.target,
- n = !!a.checked;
- if (Array.isArray(e)) {
- var r = "1",
- s = _i(e, r);
- n ? s < 0 && (form.remember = e.concat(r)) : s > -1 && (form.remember = e.slice(0, s).concat(e.slice(s + 1)))
- } else form.remember = n
- }
- }
- }), "\n Ține-mă minte\n "])])])]), " ", " ", _h("div", {
- staticClass: "form-group"
- }, [_h("div", {
- staticClass: "col-md-7 col-md-offset-3"
- }, [_h("button", {
- staticClass: "btn btn-primary",
- attrs: {
- disabled: form.busy,
- type: "submit"
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-sign-in"
- }), " ", "\n Login\n "])])])])])])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("i", {
- staticClass: "fa fa-fw fa-database"
- })
- }, function() {
- with(this) return _h("div", {
- staticClass: "panel-heading"
- }, ["Autentificare"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "col-md-3 control-label"
- }, ["Utilizator"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "col-md-3 control-label"
- }, ["Parola"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("div", {
- staticClass: "form-group"
- }, [_m(0), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.max_reports,
- expression: "form.max_reports"
- }],
- staticClass: "form-control",
- attrs: {
- type: "number",
- min: "0"
- },
- domProps: {
- value: _s(form.max_reports)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.max_reports = _n(t.target.value))
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "max_reports"
- }
- }), " ", _m(1)]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.min_solved_count_to_delete_question,
- expression: "form.min_solved_count_to_delete_question"
- }],
- staticClass: "form-control",
- attrs: {
- type: "number",
- min: "0"
- },
- domProps: {
- value: _s(form.min_solved_count_to_delete_question)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.min_solved_count_to_delete_question = _n(t.target.value))
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "min_solved_count_to_delete_question"
- }
- }), " ", _m(3)]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(4), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.max_solved_count_per_question_to_allow_deletion,
- expression: "form.max_solved_count_per_question_to_allow_deletion"
- }],
- staticClass: "form-control",
- attrs: {
- type: "number",
- min: "0"
- },
- domProps: {
- value: _s(form.max_solved_count_per_question_to_allow_deletion)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.max_solved_count_per_question_to_allow_deletion = _n(t.target.value))
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "max_solved_count_per_question_to_allow_deletion"
- }
- }), " ", _m(5)]), " ", _h("div", {
- staticClass: "form-group"
- }, [_h("button", {
- staticClass: "btn btn-success",
- attrs: {
- disabled: form.busy,
- type: "submit"
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _e(), "\n Salvează\n "])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Numărul de Raportări"])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Numărul de raportări permise după care întrebarea nu va mai fi aleasă.\n Întrebările cu prea multe raportări vor fi afișate pe Dashboard.\n "])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Numărul de Rezolvări pentru Ștergere"])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Numărul minim de întrebări rezolvate pentru a putea șterge o întrebare.\n "])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Numărul de Rezolvări pe întrebare pentru Ștergere"])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Numărul maxim răspunsuri corecte pe care o întrebare le are pentru a putea fi ștearsă.\n "])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("div", {
- staticClass: "form-group"
- }, [_m(0), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.max_question_length,
- expression: "form.max_question_length"
- }],
- staticClass: "form-control",
- attrs: {
- type: "number",
- min: "1"
- },
- domProps: {
- value: _s(form.max_question_length)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.max_question_length = _n(t.target.value))
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "max_question_length"
- }
- }), " ", _m(1)]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.min_asked_count,
- expression: "form.min_asked_count"
- }],
- staticClass: "form-control",
- attrs: {
- type: "number",
- min: "1"
- },
- domProps: {
- value: _s(form.min_asked_count)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.min_asked_count = _n(t.target.value))
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "min_asked_count"
- }
- }), " ", _m(3)]), " ", _m(4), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(5), " ", _h("div", {
- staticClass: "input-group"
- }, [_h("div", {
- staticClass: "form-control"
- }, [_h("input", {
- attrs: {
- type: "range",
- min: "0",
- max: "100"
- },
- domProps: {
- value: _s(form.min_solved_ratio)
- },
- on: {
- input: function(t) {
- form.min_solved_ratio = t.target.value
- }
- }
- })]), " ", _h("span", {
- staticClass: "input-group-addon percentage"
- }, [_s(form.min_solved_ratio) + "%"])]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "min_solved_ratio"
- }
- }), " ", _m(6)]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(7), " ", _h("div", {
- staticClass: "input-group"
- }, [_h("div", {
- staticClass: "form-control"
- }, [_h("input", {
- attrs: {
- type: "range",
- min: "0",
- max: "100"
- },
- domProps: {
- value: _s(form.max_solved_ratio)
- },
- on: {
- input: function(t) {
- form.max_solved_ratio = t.target.value
- }
- }
- })]), " ", _h("span", {
- staticClass: "input-group-addon percentage"
- }, [_s(form.max_solved_ratio) + "%"])]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "max_solved_ratio"
- }
- }), " ", _m(8)]), " ", _m(9), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(10), " ", _h("input", {
- directives: [{
- name: "model",
- value: form.question_random_set,
- expression: "form.question_random_set"
- }],
- staticClass: "form-control",
- attrs: {
- type: "number"
- },
- domProps: {
- value: _s(form.question_random_set)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.question_random_set = _n(t.target.value))
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "question_random_set"
- }
- }), " ", _m(11)]), " ", _m(12), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(13), " ", _h("div", {
- staticClass: "input-group"
- }, [_h("div", {
- staticClass: "form-control"
- }, [_h("input", {
- attrs: {
- type: "range",
- min: "0",
- max: "100"
- },
- domProps: {
- value: _s(form.min_time_taken_ratio)
- },
- on: {
- input: function(t) {
- form.min_time_taken_ratio = t.target.value
- }
- }
- })]), " ", _h("span", {
- staticClass: "input-group-addon percentage"
- }, [_s(form.min_time_taken_ratio) + "%"])]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "min_time_taken_ratio"
- }
- }), " ", _m(14)]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(15), " ", _h("div", {
- staticClass: "input-group"
- }, [_h("div", {
- staticClass: "form-control"
- }, [_h("input", {
- attrs: {
- type: "range",
- min: "0",
- max: "100"
- },
- domProps: {
- value: _s(form.max_time_taken_ratio)
- },
- on: {
- input: function(t) {
- form.max_time_taken_ratio = t.target.value
- }
- }
- })]), " ", _h("span", {
- staticClass: "input-group-addon percentage"
- }, [_s(form.max_time_taken_ratio) + "%"])]), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "max_time_taken_ratio"
- }
- }), " ", _m(16)]), " ", _h("div", {
- staticClass: "form-group"
- }, [_h("button", {
- staticClass: "btn btn-success",
- attrs: {
- disabled: form.busy,
- type: "submit"
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin"
- }) : _e(), "\n Salvează\n "])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Numărul Maxim de Caractere"])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Numărul maxim de caractere pentru o intrebare adaugată de un utilizator.\n "])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Numărul Minim de Alegeri - ", _h("var", ["MIN_ASKED_COUNT"])])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Numărul minim de câte ori o întrebare este aleasă, înainte de filtrare pentru că are rația ", _h("var", ["SOlVED/ASKED"]), " mai mică decât ", _h("var", ["MIN_SOLVED_RATIO"]), " sau mai mare decât ", _h("var", ["MAX_SOLVED_RATIO"]), ".\n "])
- }, function() {
- with(this) return _h("hr")
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Procentajul Minim de Rezolvare - ", _h("var", ["MIN_SOLVED_RATIO"])])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Procentajul ", _h("var", ["SOlVED/ASKED"]), " minim pentru care o întrebare este aleasă.\n Se aplică dupa ce întrebarea a fost aleasă de ", _h("var", ["MIN_ASKED_COUNT"]), " ori.\n "])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Procentajul Maxim de Rezolvare - ", _h("var", ["MAX_SOLVED_RATIO"])])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Procentajul ", _h("var", ["SOlVED/ASKED"]), " maxim pentru care o întrebare este aleasă.\n Se aplică dupa ce întrebarea a fost aleasă de ", _h("var", ["MIN_ASKED_COUNT"]), " ori.\n "])
- }, function() {
- with(this) return _h("hr")
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Dimiensiunea Setului Aleator"])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Dimensiunea maximă a setului de întrebări din care o întrebare va fi aleasă aleator.\n Setul este ordonat după numărul de câte ori întrebările au fost alese.\n "])
- }, function() {
- with(this) return _h("hr")
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Procentajul Minim a Timpului de Rezolvare"])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Procentajul minim pentru care timpul mediu a întrebării trebuie sa fie peste, pentru ca sa poată fi aleasă. Este aplicat după ce întrebarea a fost aleasă de ", _h("var", ["MIN_ASKED_COUNT"]), " ori.\n "])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Procentajul Maxim a Timpului de Rezolvare"])
- }, function() {
- with(this) return _h("p", {
- staticClass: "help-block"
- }, ["\n Procentajul maxim pentru care timpul mediu a întrebării trebuie sa fie sub, pentru ca sa poată fi aleasă. Este aplicat după ce întrebarea a fost aleasă de ", _h("var", ["MIN_ASKED_COUNT"]), " ori.\n "])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("table-tree"), " ", _h("panel", {
- attrs: {
- loading: ""
- }
- }, [chapter ? _h("div", {
- staticClass: "clearfix"
- }, [_h("h3", {
- staticClass: "pull-left m-t-xs m-b-xs"
- }, [_s(chapter.name)]), " ", _h("h4", {
- staticClass: "pull-right m-t-sm m-b-0"
- }, ["\n " + _s(chapter.questions_answered ? chapter.questions_answered.count : 0) + " /\n " + _s(chapter.questions_count ? chapter.questions_count.count : 0) + " răspunse\n "])]) : _e(), " ", _m(0), " ", _h("div", {
- staticClass: "row"
- }, [_h("div", {
- staticClass: "col-md-12"
- }, [question ? _h("div", {
- staticClass: "question"
- }, [_h("canvas-text", {
- attrs: {
- text: question.question
- }
- })]) : _e()])])]), " ", _m(1), " ", _h("panel", {
- attrs: {
- loading: ""
- }
- }, [_h("alert-errors", {
- staticClass: "quiz-alert-errors",
- attrs: {
- form: form,
- message: ""
- }
- }), " ", evaluate && evaluate.check ? _h("div", {
- staticClass: "alert alert-success dismissible"
- }, [_m(2)]) : _e(), " ", evaluate && !evaluate.check ? _h("div", {
- staticClass: "alert alert-danger clearfix wrong-answer"
- }, [_h("span", {
- staticClass: "pull-left m-t-xs"
- }, [_m(3), "\n [întrebarea a fost rezovată de " + _s(question.solved) + " ori din " + _s(question.asked) + " încercări]\n ", _m(4), " ", _h("a", {
- staticClass: "report",
- on: {
- click: report
- }
- }, ["Raportează această întrebare ca greșită."])]), " ", _h("button", {
- staticClass: "btn btn-default pull-right",
- attrs: {
- type: "button"
- },
- on: {
- click: function(t) {
- viewResults()
- }
- }
- }, ["Vezi rezultate"])]) : _e(), " ", _h("div", {
- staticClass: "form-group"
- }, [_h("query-input", {
- directives: [{
- name: "model",
- value: form.query,
- expression: "form.query"
- }],
- domProps: {
- value: form.query
- },
- on: {
- input: function(t) {
- form.query = t
- }
- }
- })]), " ", _h("div", {
- staticClass: "clearfix"
- }, [canRunTest ? _h("button", {
- staticClass: "btn btn-success pull-left",
- attrs: {
- disabled: form.busy,
- type: "button"
- },
- on: {
- click: function(t) {
- runQuery(form)
- }
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-play fa-btn"
- }), " ", "\n Testează\n "]) : _e(), " ", _h("button", {
- directives: [{
- name: "show",
- value: !evaluate,
- expression: "!evaluate"
- }],
- staticClass: "btn btn-primary pull-right",
- attrs: {
- disabled: form.busy || form.busy,
- type: "button"
- },
- on: {
- click: save
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-floppy-o fa-btn"
- }), " ", "\n Salvează\n "]), " ", evaluate ? _h("button", {
- staticClass: "btn btn-primary pull-right",
- on: {
- click: function(t) {
- next()
- }
- }
- }, [_m(5), "\n Urmatoarea\n "]) : _e()])]), " ", _m(6), " ", queryResults && queryResults.columns ? _h("panel", {
- attrs: {
- loading: ""
- }
- }, [_h("query-results", {
- attrs: {
- results: queryResults,
- correct: correctResults
- }
- })]) : _e()])
- },
- staticRenderFns: [function() {
- with(this) return _h("hr")
- }, function() {
- with(this) return _h("br")
- }, function() {
- with(this) return _h("b", ["Ai raspuns corect."])
- }, function() {
- with(this) return _h("b", ["Ai raspuns greșit."])
- }, function() {
- with(this) return _h("br")
- }, function() {
- with(this) return _h("i", {
- staticClass: "fa fa-fw fa-chevron-right fa-btn"
- })
- }, function() {
- with(this) return _h("br")
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return $root.loading ? _e() : _h("div", [_h("div", {
- staticClass: "row"
- }, [_h("div", {
- staticClass: "row-height"
- }, [_h("div", {
- staticClass: "col-md-4 col-sm-6 col-xs-12 col-sm-height col-sm-middle"
- }, [_h("panel", {
- staticClass: "description-panel"
- }, [_h("div", [_h("h3", [_s(chapter.name)])]), " ", _m(0), " ", _h("span", [_s(chapter.description)])]), " ", _h("panel", {
- staticClass: "clearfix"
- }, [_h("div", {
- staticClass: "clearfix"
- }, [_m(1), " ", _h("h4", {
- staticClass: "pull-right"
- }, [_h("span", {
- staticClass: "label label-success"
- }, [_s(chapter.questions_till_next)])])]), " ", _h("div", {
- staticClass: "clearfix"
- }, [_m(2), " ", _h("h4", {
- staticClass: "pull-right"
- }, [_h("span", {
- staticClass: "label label-success"
- }, [_s(chapter.questions_till_next_delete)])])])])]), " ", _h("div", {
- staticClass: "col-md-8 col-sm-6 col-xs-12 col-sm-height col-sm-top"
- }, [_h("panel", {
- staticClass: "stats-panel"
- }, [_h("div", {
- staticClass: "clearfix"
- }, [_m(3), " ", _h("h4", {
- staticClass: "pull-right"
- }, [_h("span", {
- staticClass: "label label-default"
- }, [_s(getSolveRate()) + " %"])])]), " ", _h("div", {
- staticClass: "clearfix"
- }, [_m(4), " ", _h("h4", {
- staticClass: "pull-right"
- }, [_h("span", {
- staticClass: "label label-primary"
- }, [_s(chapter.questions_count ? chapter.questions_count.count : 0)])])]), " ", _m(5), " ", _h("div", {
- staticClass: "clearfix"
- }, [_m(6), " ", _h("h4", {
- staticClass: "pull-right"
- }, [_h("span", {
- staticClass: "label label-default"
- }, [_s(getUserSolveRate()) + " %"])])]), " ", _h("div", {
- staticClass: "clearfix"
- }, [_m(7), " ", _h("h4", {
- staticClass: "pull-right"
- }, [_h("span", {
- staticClass: "label label-primary"
- }, [_s(chapter.questions_answered ? chapter.questions_answered.count : 0)])])]), " ", _h("div", {
- staticClass: "clearfix"
- }, [_m(8), " ", _h("h4", {
- staticClass: "pull-right"
- }, [_h("span", {
- staticClass: "label label-primary"
- }, [_s(chapter.questions_solved ? chapter.questions_solved.count : 0)])])])])])])]), " ", _h("div", {
- staticClass: "row"
- }, [_h("div", {
- staticClass: "col-xs-12"
- }, [_h("panel", [chart ? _h("linear-chart", {
- attrs: {
- config: chart
- }
- }) : _e()])])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("hr")
- }, function() {
- with(this) return _h("h4", {
- staticClass: "pull-left"
- }, ["Întrebari pană la urmatorul pas"])
- }, function() {
- with(this) return _h("h4", {
- staticClass: "pull-left"
- }, ["Întrebari pană la ștergere"])
- }, function() {
- with(this) return _h("h4", {
- staticClass: "pull-left"
- }, ["Procentul de rezolvare "])
- }, function() {
- with(this) return _h("h4", {
- staticClass: "pull-left"
- }, ["Întrebari totale"])
- }, function() {
- with(this) return _h("hr")
- }, function() {
- with(this) return _h("h4", {
- staticClass: "pull-left"
- }, ["Procentul tău de rezolvare "])
- }, function() {
- with(this) return _h("h4", {
- staticClass: "pull-left"
- }, ["Întrebari răspunse"])
- }, function() {
- with(this) return _h("h4", {
- staticClass: "pull-left"
- }, ["Întrebari rezolvate"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("panel", {
- attrs: {
- loading: ""
- }
- }, [_h("div", {
- staticClass: "clearfix"
- }, [_m(0), " ", _h("router-link", {
- staticClass: "pull-right btn btn-default btn-sm",
- attrs: {
- to: {
- name: "user.questions.create"
- },
- style: "margin-top: 13px"
- }
- }, [_m(1), " Adaugă\n "])]), " ", _m(2), " ", _m(3)]), " ", _h("div", {
- staticClass: "row labels labels-small"
- }, [_h("div", {
- staticClass: "col-md-6 col-xs-12"
- }, [_l(oddQuestions, function(t) {
- return _h("question-panel", {
- attrs: {
- question: t
- }
- })
- })]), " ", _h("div", {
- staticClass: "col-md-6 col-xs-12"
- }, [_l(evenQuestions, function(t) {
- return _h("question-panel", {
- attrs: {
- question: t
- }
- })
- })])])])
- },
- staticRenderFns: [function() {
- with(this) return _h("div", {
- staticClass: "pull-left"
- }, [_h("h3", {
- staticClass: "pull-left"
- }, ["Întrebările mele"])])
- }, function() {
- with(this) return _h("i", {
- staticClass: "fa fa-plus-circle"
- })
- }, function() {
- with(this) return _h("hr")
- }, function() {
- with(this) return _h("div", {
- staticClass: "clearfix labels"
- }, [_h("div", {
- staticClass: "label label-default"
- }, ["\n capitol\n "]), " ", _h("div", {
- staticClass: "label label-success m-l-xs"
- }, ["\n rezolvată / raspunsă\n "]), " ", _h("div", {
- staticClass: "label label-danger m-l-xs"
- }, ["\n raporturi\n "])])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("div", [_h("table-tree"), " ", _h("panel", {
- attrs: {
- title: "Adaugă întrebare",
- loading: ""
- }
- }, [0 === chapters.length ? _h("div", {
- staticClass: "alert alert-danger"
- }, ["\n Nu poți adăuga nici o intrebare încă.\n Pentru a adauga întrabări răspunde la mai multe întrebari\n "]) : _e(), " ", _h("alert-success", {
- attrs: {
- form: form,
- message: "Întrebarea a fost adăugată!"
- }
- }), " ", 0 != chapters.length ? _h("form", {
- on: {
- submit: function(t) {
- t.preventDefault(), save(t)
- }
- }
- }, [_h("div", {
- staticClass: "form-group"
- }, [_m(0), " ", _h("selectize", {
- directives: [{
- name: "model",
- value: form.chapter,
- expression: "form.chapter"
- }],
- attrs: {
- options: chapters,
- "close-after-select": !0
- },
- domProps: {
- value: form.chapter
- },
- on: {
- input: function(t) {
- form.chapter = t
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "chapter"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_h("div", {
- staticClass: "pull-right remaining-chars"
- }, [_h("small", [" " + _s(this.remainingChars) + " / " + _s(this.maxQuestionLength)])]), " ", _m(1), " ", _h("textarea", {
- directives: [{
- name: "model",
- value: form.question,
- expression: "form.question"
- }, {
- name: "autosize"
- }],
- staticClass: "form-control",
- attrs: {
- maxlength: maxQuestionLength,
- style: "height: 50px;"
- },
- domProps: {
- value: _s(form.question)
- },
- on: {
- input: function(t) {
- t.target.composing || (form.question = t.target.value)
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "question"
- }
- })]), " ", _h("div", {
- staticClass: "form-group"
- }, [_m(2), " ", _h("query-input", {
- directives: [{
- name: "model",
- value: form.query,
- expression: "form.query"
- }],
- domProps: {
- value: form.query
- },
- on: {
- input: function(t) {
- form.query = t
- }
- }
- }), " ", _h("has-error", {
- attrs: {
- form: form,
- field: "query"
- }
- })]), " ", _h("div", {
- staticClass: "clearfix"
- }, [_h("button", {
- staticClass: "btn btn-success pull-left",
- attrs: {
- disabled: form.busy,
- type: "button"
- },
- on: {
- click: function(t) {
- runQuery(form)
- }
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-play fa-btn"
- }), " ", "\n Execută\n "]), " ", _h("button", {
- staticClass: "btn btn-primary pull-right",
- attrs: {
- disabled: form.busy,
- type: "submit"
- },
- on: {
- click: save
- }
- }, [form.busy ? _h("i", {
- staticClass: "fa fa-fw fa-spinner fa-spin fa-btn"
- }) : _h("i", {
- staticClass: "fa fa-fw fa-floppy-o fa-btn"
- }), " ", "\n Salvează\n "])])]) : _e()]), " ", queryResults && queryResults.columns ? _h("panel", [_h("query-results", {
- attrs: {
- results: queryResults
- }
- })]) : _e()])
- },
- staticRenderFns: [function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Capitol"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Întrebare"])
- }, function() {
- with(this) return _h("label", {
- staticClass: "control-label"
- }, ["Răspuns"])
- }]
- }
- }, function(module, exports) {
- module.exports = {
- render: function() {
- with(this) return _h("textarea", {
- directives: [{
- name: "model",
- value: query,
- expression: "query"
- }],
- staticClass: "form-control",
- domProps: {
- value: _s(query)
- },
- on: {
- input: function(t) {
- t.target.composing || (query = t.target.value)
- }
- }
- })
- },
- staticRenderFns: []
- }
- }, , , , , function(t, e) {}]);
Add Comment
Please, Sign In to add comment