Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News Site Nuxt #427

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
723 changes: 723 additions & 0 deletions resources/newssite/news-nuxt/data/ar/content.js

Large diffs are not rendered by default.

723 changes: 723 additions & 0 deletions resources/newssite/news-nuxt/data/en/content.js

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions resources/newssite/news-nuxt/data/index.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import { content as contentEn } from "~/data/en/content";
import { content as contentJp } from "~/data/jp/content";
import { content as contentAr } from "~/data/ar/content";
import { content as contentEn } from "@/data/en/content";
import { content as contentJp } from "@/data/jp/content";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, why have you changed this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like nuxt supports both ways and this is consistent with next.js.
At least it still worked after I copied and pasted it by accident 🤣

I can revert that change though if there are concerns

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find any doc about that except from a babel plugin that I don't think we're using... Whatever works works also for me here

import { content as contentAr } from "@/data/ar/content";

import { settings as settingsEn } from "~/data/en/dialog";
import { settings as settingsJp } from "~/data/jp/dialog";
import { settings as settingsAr } from "~/data/ar/dialog";
import { settings as settingsEn } from "@/data/en/dialog";
import { settings as settingsJp } from "@/data/jp/dialog";
import { settings as settingsAr } from "@/data/ar/dialog";

import { footer as footerEn } from "~/data/en/footer";
import { footer as footerJp } from "~/data/jp/footer";
import { footer as footerAr } from "~/data/ar/footer";
import { footer as footerEn } from "@/data/en/footer";
import { footer as footerJp } from "@/data/jp/footer";
import { footer as footerAr } from "@/data/ar/footer";

import * as buttonsEn from "~/data/en/buttons";
import * as buttonsJp from "~/data/jp/buttons";
import * as buttonsAr from "~/data/ar/buttons";
import * as buttonsEn from "@/data/en/buttons";
import * as buttonsJp from "@/data/jp/buttons";
import * as buttonsAr from "@/data/ar/buttons";

import * as linksEn from "~/data/en/links";
import * as linksJp from "~/data/jp/links";
import * as linksAr from "~/data/ar/links";
import * as linksEn from "@/data/en/links";
import * as linksJp from "@/data/jp/links";
import * as linksAr from "@/data/ar/links";

export const dataSource = {
en: {
Expand Down
723 changes: 723 additions & 0 deletions resources/newssite/news-nuxt/data/jp/content.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions resources/newssite/news-nuxt/dist/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<head><meta charset="utf-8">
<title>The Daily Broadcast</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A news site developed with Nuxt."><link rel="modulepreload" as="script" crossorigin href="./_nuxt/entry.6023314e.js"><link rel="preload" as="style" href="./_nuxt/entry.4163a698.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-component.df420153.js"><link rel="stylesheet" href="./_nuxt/entry.4163a698.css"></head>
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"./",buildAssetsDir:"/_nuxt/",cdnURL:"./"}}</script><script type="module" src="./_nuxt/entry.6023314e.js" crossorigin></script></body>
<meta name="description" content="A news site developed with Nuxt."><link rel="modulepreload" as="script" crossorigin href="./_nuxt/entry.d085c204.js"><link rel="preload" as="style" href="./_nuxt/entry.4163a698.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-component.c3cbe3a9.js"><link rel="stylesheet" href="./_nuxt/entry.4163a698.css"></head>
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"./",buildAssetsDir:"/_nuxt/",cdnURL:"./"}}</script><script type="module" src="./_nuxt/entry.d085c204.js" crossorigin></script></body>
</html>
119 changes: 0 additions & 119 deletions resources/newssite/news-nuxt/dist/_nuxt/entry.6023314e.js

This file was deleted.

119 changes: 119 additions & 0 deletions resources/newssite/news-nuxt/dist/_nuxt/entry.d085c204.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions resources/newssite/news-nuxt/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<head><meta charset="utf-8">
<title>The Daily Broadcast</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A news site developed with Nuxt."><link rel="modulepreload" as="script" crossorigin href="./_nuxt/entry.6023314e.js"><link rel="preload" as="style" href="./_nuxt/entry.4163a698.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-component.df420153.js"><link rel="stylesheet" href="./_nuxt/entry.4163a698.css"></head>
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"./",buildAssetsDir:"/_nuxt/",cdnURL:"./"}}</script><script type="module" src="./_nuxt/entry.6023314e.js" crossorigin></script></body>
<meta name="description" content="A news site developed with Nuxt."><link rel="modulepreload" as="script" crossorigin href="./_nuxt/entry.d085c204.js"><link rel="preload" as="style" href="./_nuxt/entry.4163a698.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-component.c3cbe3a9.js"><link rel="stylesheet" href="./_nuxt/entry.4163a698.css"></head>
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"./",buildAssetsDir:"/_nuxt/",cdnURL:"./"}}</script><script type="module" src="./_nuxt/entry.d085c204.js" crossorigin></script></body>
</html>
Loading