feat: Allow using the layouts folder to customize the app root instead of app.vue
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 34/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- nuxt, typescript
- Bereich
- mobile
Rechercherichtung
Beginne mit der im Issue verlinkten Dokumentation zum Anpassen von app.vue und reproduziere das Verhalten mit einem in Nuxt konfigurierten plattformspezifischen layouts-Verzeichnis. Verfolge, wie das Ionic-Modul den App-Root auswählt, und vergleiche die vorgeschlagenen Ansätze default-layout, ionic.vue und konfigurierbares appIndex; abgeschlossen ist die Aufgabe, wenn ein plattformspezifischer Root ausgewählt werden kann, ohne dass app.vue layouts überschreibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
🆒 Your use case
When creating a multi platform project (e.g. with web, electron, and ionic), I need to use completely different layouts depending on the project. I do this by changing the layouts dir in my nuxt config depending on the platform I'm building for.
It seems as though you can only customize the root ionic app with the app.vue file. Since the path can't be configured, it breaks the ability to change the app root on a per platform basis. This is because nuxt seems to ignore the layouts folder entirely if there's an app.vue file in the root folder.
🆕 The solution you'd like
If a default layout is found, use that instead of the default app.vue file. Or alternatively, use a layout file called ionic.vue.
Another simple solution would be to allow configuring where nuxt ionic looks for the app.vue file. In this case I could point directly to my app index file:
// Ionic nuxt config...
ionic: {
appIndex: 'layouts/mobile/default.vue'
}
🔍 Alternatives you've considered
I couldn't find any info on the docs on how to accomplish this: https://ionic.nuxtjs.org/cookbook/customising-app-vue
ℹ️ Additional info
- Vorherrschende Sprache
- TypeScript
- Sterne
- 458
- Forks
- 54
- Ø Merge
- 1 T. 1 Std.
- Gemergte PRs (30 T.)
- 19
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nuxt-modules/ionic
-
`useHead` does not resolve reactive input on the clientEvtl. vergeben @Carpediem94 hat das vor 74 Tagen übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 74/100
nuxt-modules/ionic#1004 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
nuxt-modules/ionic#908 · 2 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 35/100
nuxt-modules/ionic#867 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug needs reproduction
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
nuxt-modules/ionic#696 ·
Maintainer antworten meist innerhalb von 1 Tag
-
IonCardOffenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
nuxt-modules/ionic#610 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in nuxt-modules/ionic
Ähnliche Issues
-
[Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --displayEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
pingdotgg/t3code#24900 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
inu-appcenter/UNIDorm-web#411 ·
Maintainer antworten meist innerhalb von 1 Tag
-
🐛 bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
ranxianglei/billion-context#4720 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:arcade game p3-medium ready-for-agent type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
fderuiter/deruiter.dev#2840 ·
Maintainer antworten meist innerhalb von 1 Tag