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

add support to home page customizations. #25943

Merged
merged 4 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
21 changes: 21 additions & 0 deletions generators/app/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,13 @@ exports[`generator - app with default config should match snapshot 1`] = `
"generateUserManagement": true,
"gradleEnterpriseHost": undefined,
"hipster": "jhipster_family_member_3",
"hipsterBugTrackerProductName": "JHipster",
"hipsterChatProductName": "JHipster",
"hipsterHomePageProductName": "JHipster",
"hipsterName": "Java Hipster",
"hipsterProductName": "JHipster",
"hipsterStackOverflowProductName": "JHipster",
"hipsterTwitterUsername": "@jhipster",
"humanizedBaseName": "JHipster",
"imperativeOrReactive": "imperative",
"incrementalChangelog": undefined,
Expand Down Expand Up @@ -1041,6 +1048,13 @@ exports[`generator - app with gateway should match snapshot 1`] = `
"generateUserManagement": true,
"gradleEnterpriseHost": undefined,
"hipster": "jhipster_family_member_3",
"hipsterBugTrackerProductName": "JHipster",
"hipsterChatProductName": "JHipster",
"hipsterHomePageProductName": "JHipster",
"hipsterName": "Java Hipster",
"hipsterProductName": "JHipster",
"hipsterStackOverflowProductName": "JHipster",
"hipsterTwitterUsername": "@jhipster",
"humanizedBaseName": "JHipster",
"imperativeOrReactive": "reactive",
"incrementalChangelog": undefined,
Expand Down Expand Up @@ -1616,6 +1630,13 @@ exports[`generator - app with microservice should match snapshot 1`] = `
"generateUserManagement": false,
"gradleEnterpriseHost": undefined,
"hipster": "jhipster_family_member_3",
"hipsterBugTrackerProductName": "JHipster",
"hipsterChatProductName": "JHipster",
"hipsterHomePageProductName": "JHipster",
"hipsterName": "Java Hipster",
"hipsterProductName": "JHipster",
"hipsterStackOverflowProductName": "JHipster",
"hipsterTwitterUsername": "@jhipster",
"humanizedBaseName": "JHipster",
"imperativeOrReactive": "imperative",
"incrementalChangelog": undefined,
Expand Down
7 changes: 7 additions & 0 deletions generators/bootstrap-application-base/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ export default class BootstrapApplicationBase extends BaseApplicationGenerator {
dockerServicesDir: JAVA_DOCKER_DIR,
// TODO drop clientPackageManager
clientPackageManager: ({ nodePackageManager }) => nodePackageManager,
hipsterName: 'Java Hipster',
hipsterProductName: 'JHipster',
hipsterHomePageProductName: 'JHipster',
hipsterStackOverflowProductName: 'JHipster',
hipsterBugTrackerProductName: 'JHipster',
hipsterChatProductName: 'JHipster',
hipsterTwitterUsername: '@jhipster',
});
},
});
Expand Down
4 changes: 2 additions & 2 deletions generators/languages/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const clientI18nFiles = {
from: context => `${CLIENT_MAIN_SRC_DIR}/i18n/${context.lang}/`,
to: context => `${context.clientSrcDir}/i18n/${context.lang}/`,
transform: false,
templates: ['error.json', 'login.json', 'home.json', 'password.json', 'register.json', 'sessions.json', 'settings.json'],
templates: ['error.json', 'login.json', 'password.json', 'register.json', 'sessions.json', 'settings.json'],
},
{
condition: ctx => ctx.clientFrameworkVue && ctx.enableTranslation && !ctx.microfrontend,
Expand All @@ -36,7 +36,7 @@ export const clientI18nFiles = {
{
from: context => `${CLIENT_MAIN_SRC_DIR}/i18n/${context.lang}/`,
to: context => `${context.clientSrcDir}/i18n/${context.lang}/`,
templates: ['activate.json', 'global.json', 'reset.json'],
templates: ['activate.json', 'global.json', 'home.json', 'reset.json'],
},
{
condition: context => context.withAdminUi,
Expand Down
19 changes: 0 additions & 19 deletions generators/languages/templates/src/main/webapp/i18n/al/home.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"home": {
"title": "Mirëseerdhët në, <%- hipsterName %>!",
"subtitle": "Ky është kreu juaj",
"logged": {
"message": "Ju jeni futur si \"{{username}}\"."
},
"question": "Në qoftë se keni ndonjë pyetje rreth <%- hipsterProductName %>:",
"link": {
"homepage": "Kreu i <%- hipsterHomePageProductName %>",
"stackoverflow": "<%- hipsterStackOverflowProductName %> tek Stack Overflow",
"bugtracker": "<%- hipsterBugTrackerProductName %> bug tracker",
"chat": "<%- hipsterChatProductName %> dhoma e chatit publik",
"follow": "ndiq <%- hipsterTwitterUsername %> në Twitter"
},
"like": "Në qoftë se ju pëlqen <%- hipsterProductName %>, mos harroni të na jepni një yll në",
"github": "GitHub"
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"home": {
"title": "أهلا وسهلا بك، جافا هبستر!",
"subtitle": "هذه صفحتك الرئيسية",
"logged": {
"message": "قمت بتسجيل الدخول كمستخدم \"{{username}}\"."
},
"question": "إذا كان لديك أي سؤال حول <%- hipsterProductName %>:",
"link": {
"homepage": "<%- hipsterHomePageProductName %> homepage",
"stackoverflow": "<%- hipsterStackOverflowProductName %> on Stack Overflow",
"bugtracker": "<%- hipsterBugTrackerProductName %> bug tracker",
"chat": "<%- hipsterChatProductName %> public chat room",
"follow": "follow <%- hipsterTwitterUsername %> on Twitter"
},
"like": "إذا كنت تحب <%- hipsterProductName %>، لا تنسى أن تعطي لنا نجم على",
"github": "GitHub"
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"home": {
"title": "Salam, <%- hipsterName %>!",
"subtitle": "Bu Ana Səhifəniz",
"logged": {
"message": "\"{{username}}\" olaraq giriş etdiniz."
},
"question": "<%- hipsterProductName %> haqqında suallarınız üçün:",
"link": {
"homepage": "<%- hipsterHomePageProductName %> ana səhifə",
"stackoverflow": "Stack Overflowda <%- hipsterStackOverflowProductName %>",
"bugtracker": "<%- hipsterBugTrackerProductName %> xəta izləmə",
"chat": "<%- hipsterChatProductName %> ümumi söhbət otağı",
"follow": "Twitterdə <%- hipsterTwitterUsername %> adresindən əlaqə saxlaya bilərsiniz"
},
"like": "<%- hipsterProductName %>i bəyənsəniz ulduz verməyi unutmayın",
"github": "GitHub"
}
}
19 changes: 0 additions & 19 deletions generators/languages/templates/src/main/webapp/i18n/bg/home.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"home": {
"title": "Добре дошли, <%- hipsterName %>!",
"subtitle": "Това е вашата начална страница",
"logged": {
"message": "Влезли сте като потребител \"{{username}}\"."
},
"question": "Ако имате някакви въпроси относно <%- hipsterProductName %>:",
"link": {
"homepage": "<%- hipsterHomePageProductName %> начална страница",
"stackoverflow": "<%- hipsterStackOverflowProductName %> в Stack Overflow",
"bugtracker": "<%- hipsterBugTrackerProductName %> проследяване на грешки",
"chat": "<%- hipsterChatProductName %> общодостъпна чат стая",
"follow": "последвайте <%- hipsterTwitterUsername %> в Twitter"
},
"like": "Ако харесвате <%- hipsterProductName %>, не забравяйте да ни дадете звезда в",
"github": "GitHub"
}
}
19 changes: 0 additions & 19 deletions generators/languages/templates/src/main/webapp/i18n/bn/home.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"home": {
"title": "স্বাগতম, জাভা হিপ্সটার",
"subtitle": "এটা আপনার হোম পেইজ",
"logged": {
"message": "আপনি লগ ইন করেছেন এই ইউজারনেম দিয়েঃ \"{{username}}\"."
},
"question": "<%- hipsterProductName %> নিয়ে প্রশ্ন থাকলে:",
"link": {
"homepage": "<%- hipsterHomePageProductName %> হোম পেইজ",
"stackoverflow": "Stack Overflow তে <%- hipsterStackOverflowProductName %>",
"bugtracker": "<%- hipsterBugTrackerProductName %> বাগ ট্র্যাকার",
"chat": "<%- hipsterChatProductName %> পাবলিক চ্যাট রুম",
"follow": "টুইটার এ ফলো করুন <%- hipsterTwitterUsername %>"
},
"like": "<%- hipsterProductName %> ভাল লেগে থাকলে স্টার দিতে ভুলবেন না",
"github": "GitHub"
}
}
19 changes: 0 additions & 19 deletions generators/languages/templates/src/main/webapp/i18n/by/home.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"home": {
"title": "Сардэчна запрашаем, <%- hipsterName %>!",
"subtitle": "Гэта ваша дамашняя старонка",
"logged": {
"message": "Вы ўвайшлі як карыстальнік \"{{username}}\"."
},
"question": "Калі ў Вас з'явіліся пытанні па <%- hipsterProductName %>:",
"link": {
"homepage": "<%- hipsterHomePageProductName %> дамашняя старонка",
"stackoverflow": "<%- hipsterStackOverflowProductName %> на Stack Overflow",
"bugtracker": "<%- hipsterBugTrackerProductName %> баг трекер",
"chat": "<%- hipsterChatProductName %> public chat room",
"follow": "карыстальнік <%- hipsterTwitterUsername %> в Twitter"
},
"like": "Калі вам падабаецца <%- hipsterProductName %>, не забудзьце даць нам зорачку на",
"github": "GitHub"
}
}
19 changes: 0 additions & 19 deletions generators/languages/templates/src/main/webapp/i18n/ca/home.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"home": {
"title": "Benvingut, <%- hipsterName %>!",
"subtitle": "Aquesta és la pàgina principal",
"logged": {
"message": "S'ha connectat amb l'usuari \"{{username}}\"."
},
"question": "Si tens qualsevol pregunta sobre <%- hipsterProductName %>:",
"link": {
"homepage": "Pàgina preincipal de <%- hipsterHomePageProductName %>",
"stackoverflow": "<%- hipsterStackOverflowProductName %> a Stack Overflow",
"bugtracker": "<%- hipsterBugTrackerProductName %> seguiment d'incidencies",
"chat": "<%- hipsterChatProductName %> public chat room",
"follow": "Contacte <%- hipsterTwitterUsername %> a Twitter"
},
"like": "Si li agrada <%- hipsterProductName %>, no oblidi donar-nos una estrella",
"github": "GitHub"
}
}
19 changes: 0 additions & 19 deletions generators/languages/templates/src/main/webapp/i18n/cs/home.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"home": {
"title": "Vítejte, <%- hipsterName %>!",
"subtitle": "Toto je vaše domovská stránka",
"logged": {
"message": "Jste přihlášen jako \"{{username}}\"."
},
"question": "Pokud máte nějaké dotazy týkající se <%- hipsterProductName %>:",
"link": {
"homepage": "Domovská stránka <%- hipsterHomePageProductName %>",
"stackoverflow": "<%- hipsterStackOverflowProductName %> ve službě Stack Overflow",
"bugtracker": "Nahlašování chyb <%- hipsterBugTrackerProductName %>",
"chat": "Veřejná chatovací místnost <%- hipsterChatProductName %>",
"follow": "Sledovat <%- hipsterTwitterUsername %> ve službě Twitter"
},
"like": "Pokud se vám <%- hipsterProductName %> líbí, nezapomeňte nám dát hvězdičku ve službě",
"github": "GitHub"
}
}
Loading
Loading