generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feat/30937/Prohibit-n…
…on-CAP-Fiori-generation-into-a-CAP-project-folder * origin/main: chore: apply latest changesets feat(ui-prompting): rename ui prompting examples package from `@sap-ux/prompting-ui` to `@sap-ux-private/ui-prompting-examples` (#2415) chore: apply latest changesets fix: adjust condition for dynamic header field content (#2412) chore: apply latest changesets feat(ui-prompting): support translation input fields for prompts (#2400) chore: apply latest changesets Renamed the skipLiveScript parameter to addLiveConfig (#2405) chore: apply latest changesets fix: various ui improvements and bug fix (#2410) chore: apply latest changesets Refactor shared logic for generating package.json scripts for FF and FE (#2386) chore: apply latest changesets feat: enhance quick action with the template (#2388) chore: apply latest changesets fix(cpe): application mode after reload (#2389)
- Loading branch information
Showing
132 changed files
with
2,773 additions
and
1,674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{} | ||
{ | ||
"sapux": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 15 additions & 1 deletion
16
examples/prompting-ui/CHANGELOG.md → examples/ui-prompting-examples/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...pting-ui/src/addons/preview/component.tsx → ...examples/src/addons/preview/component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...pting-ui/src/addons/project/component.tsx → ...examples/src/addons/project/component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../prompting-ui/src/addons/project/types.ts → ...ting-examples/src/addons/project/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { join } from 'path'; | ||
import { createApplicationAccess } from '@sap-ux/project-access'; | ||
import type { I18nBundle, NewI18nEntry } from '@sap-ux/i18n'; | ||
|
||
/** | ||
* Method retrieves i18n bundles for passed application. | ||
* | ||
* @param root Project root | ||
* @param appName Application name | ||
* @returns i18n bundle. | ||
*/ | ||
export const getI18nBundle = async (root: string, appName?: string): Promise<I18nBundle | undefined> => { | ||
const appAccess = await createApplicationAccess(join(root, appName ?? '')); | ||
const bundles = await appAccess.getI18nBundles(); | ||
return bundles.models['i18n'] ?? bundles['sap.app']; | ||
}; | ||
|
||
/** | ||
* Method writes new i18n entries for passed application. | ||
* | ||
* @param newEntries New i18n entries to write | ||
* @param root Project root | ||
* @param appName Application name | ||
*/ | ||
export const createI18nEntry = async (newEntries: NewI18nEntry[], root: string, appName?: string): Promise<void> => { | ||
const appAccess = await createApplicationAccess(join(root, appName ?? '')); | ||
await appAccess.createUI5I18nEntries(newEntries, 'i18n'); | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.