diff --git a/src/components/EditNews.vue b/src/components/EditNews.vue index cd71703..b865104 100644 --- a/src/components/EditNews.vue +++ b/src/components/EditNews.vue @@ -100,7 +100,7 @@ let currentUrl = window.location.href; let langValue = currentUrl.split("/")[4].split("lang=")[1]; let spliturl = currentUrl.split("/")[4].split("edit=")[1].split(`lang=${langValue}`)[0].split(`&`)[0]; - console.log(spliturl); + console.log(spliturl, langValue); let formData = new FormData(); formData.append('slug', spliturl); fetch(`https://apisp.dev2.cicdhosting.com/_dedicated/dwd/edit-news/?action=news_${langValue}`, { diff --git a/src/pages/editor/add-news.astro b/src/pages/editor/add-news.astro index 67b99df..6e095e1 100644 --- a/src/pages/editor/add-news.astro +++ b/src/pages/editor/add-news.astro @@ -1,6 +1,6 @@ --- import Layout from "../../layouts/Layout.astro"; -// import ImageUpload from "../../components/ImageUpload.vue"; +import ImageUpload from "../../components/ImageUpload.vue"; --- @@ -8,13 +8,14 @@ import Layout from "../../layouts/Layout.astro"; Genarate New News + News Genarate Succesfully - Language* + Category* @@ -28,106 +29,23 @@ import Layout from "../../layouts/Layout.astro"; News Paragraph - + - + provide meta_title within 60 characters, meta_description within 160 characters, short_description within 280 characters, heading within 170 characters in en, bn, hi, zh, es ar all in a json structure no use comma after line ending - Genarate - Genarate + Genarate - - - Add News to Barta-India's Page - - All(*) are mandatory fields - - - Status* - - -Select- - Published - Draft - Archived - - - - Language* - - -Select- - Bengali - English - - - - Category* - - -Select- - National - Politics - Local - Technology - World - - - - Title* - - - - Slug* - - - - Heading* - - - - Meta Title* - - - - Meta Description* - - - - In Brief* - - - - News Description* - - - - Upload File - - - - Save - - - Processing... - @@ -135,25 +53,12 @@ import Layout from "../../layouts/Layout.astro"; - \ No newline at end of file diff --git a/src/pages/editor/single-gen.astro b/src/pages/editor/single-gen.astro new file mode 100644 index 0000000..67b99df --- /dev/null +++ b/src/pages/editor/single-gen.astro @@ -0,0 +1,267 @@ +--- +import Layout from "../../layouts/Layout.astro"; +// import ImageUpload from "../../components/ImageUpload.vue"; +--- + + + + + + Genarate New News + + Language* + + -Select- + English + Bengali + + + Category* + + -Select- + National + Politics + Local + Technology + World + + + + News Paragraph + + + + + + + Genarate + Genarate + + + + + + + Add News to Barta-India's Page + + All(*) are mandatory fields + + + Status* + + -Select- + Published + Draft + Archived + + + + Language* + + -Select- + Bengali + English + + + + Category* + + -Select- + National + Politics + Local + Technology + World + + + + Title* + + + + Slug* + + + + Heading* + + + + Meta Title* + + + + Meta Description* + + + + In Brief* + + + + News Description* + + + + Upload File + + + + Save + + + + + + + Processing... + + + + + + + + + \ No newline at end of file
News Genarate Succesfully
All(*) are mandatory fields
Processing...