Compare commits

..

No commits in common. "44168bd5ec132d62838e4d311965bf8b0093d3a7" and "7205931f3074d9c59d8b5beceabfda2c03cb9ce6" have entirely different histories.

5 changed files with 9 additions and 18 deletions

2
.env
View File

@ -2,6 +2,6 @@ NUXT_PUBLIC_API_NAME=api/
IS_DEVLOP_MODE=1
NUXT_PUBLIC_SYSTEM=tavasi_conflict
NUXT_PUBLIC_SYSTEM=monir
NUXT_PUBLIC_BASE_URL=http://192.168.23.160/
NUXT_PUBLIC_BASE_URL2=https://hamfahmi.ir/

View File

@ -2,5 +2,5 @@
NUXT_PUBLIC_SYSTEM=majles
# (اختیاری)
NUXT_PUBLIC_SYSTEM=tavasi_conflict
NUXT_PUBLIC_BASE_URL=https://192.168.23.160/
NUXT_PUBLIC_APP_NAME=Majles System
NUXT_PUBLIC_BASE_URL=http://192.168.23.160/

View File

@ -251,9 +251,7 @@ function generateDetailsHtml(item) {
let html = `<details class="custom-details" ${item.isOpen ? "open" : ""}>`;
html += `<summary>`;
if (item.tag) {
html += `<a class="tag" target="normal" @click.stop="true" > ${item.tag} </a>`;
// console.log(" html 1 ", html);
html += `<span class="tag" > ${item.tag} </span>`;
}
html += `${item.title || "بدون عنوان"}`;
@ -271,8 +269,6 @@ function generateDetailsHtml(item) {
}
html += `</details>`;
// console.log(" html 10 ", html);
return html;
}
@ -285,8 +281,6 @@ function loadFromJson() {
html += generateDetailsHtml(item);
});
console.log('loadFromJson ', html);
editor.value.commands.setContent(html);
}
watch(
@ -295,7 +289,7 @@ watch(
if (!editor.value) return;
if (!newVal || newVal.length === 0) return;
// console.log("accordionData updated:", newVal);
console.log("accordionData updated:", newVal);
nextTick(() => {
loadFromJson();

View File

@ -56,7 +56,7 @@ const setDataEditor = async () => {
node = {
isOpen: false,
id: item.section_mom_id,
title: `<a class="label" href="#">قانون مقدم : </a>` + item.qanon_title + " - " + item.full_path,
title: `<span class="label">قانون مقدم : </span>` + item.qanon_title + " > " + item.full_path,
tag: item.state_etebar,
content: _source.content1,
link_label: "«منبع»",
@ -91,7 +91,7 @@ const setDataEditor = async () => {
node = {
isOpen: false,
id: item.section_mom_id,
title: `<a class="label">قانون موخر : </a>` + item.qanon_title + " - " + item.full_path,
title: `<span class="label">قانون موخر : </span>` + item.qanon_title + " > " + item.full_path,
tag: item.state_etebar,
content: _source.content2,
link_label: "«منبع»",
@ -132,7 +132,7 @@ const setDataEditor = async () => {
if (_source.subject_unity.description) {
node["children"].push({
isOpen: false,
id: _source.context_id,
id: item.context_id,
title: "شرط اعتبار وحدت موضوع : ",
content: _source.subject_unity.description,
});

View File

@ -4,11 +4,8 @@
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"dev-tavasi": "env-cmd -f .env.tavasi nuxt dev --host --port 3007 --inspect",
"build-tavasi": "env-cmd -f .env.tavasi nuxt build --host --inspect",
"build-majles": "env-cmd -f .env.majles nuxt build --host --inspect"
"dev": "nuxt dev"
},
"dependencies": {
"@iconify-json/meteor-icons": "^1.2.1",