Code Monkey home page Code Monkey logo

cds-launchpad-plugin's Introduction

๐Ÿ‘‹ Hi there

GitHub last commit GitHub followers

๐Ÿ“ซ How to best reach out:

๐Ÿ“– My latest blog posts

๐Ÿ‘จโ€๐Ÿ’ป Repositories I created recently

๐Ÿ‘ท I'm currently working on (aka my most recent contributions)

โญ Latest repositories I starred

๐Ÿ‘ฅ My latest followers

๐Ÿ“Š Statistics

Geert-Jan's github stats

๐ŸŽ“ Certificates & Trainings

SAP Certified Development Associate - ABAP with SAP NetWeaver 7.50 SAP Certified Development Specialist - ABAP for SAP HANA 2.0 SAP Certified Development Associate - SAP Fiori Application Developer SAP Certified Development Specialist - ABAP for SAP HANA 2.0 Customer Engagement Skills - SAP Customer Success SAP Certified Development Associate - SAP BTP Extensions with SAP Cloud Application Programming Model SAP Certified Development Specialist - ABAP for SAP HANA 2.0 SAP Certified Development Associate - Programming in SAP S/4HANA for SAP NetWeaver ABAP Programmers SAP Certified Development Associate - SAP Fiori Application Developer SAP Certified Development Associate - SAP Cloud Platform SAP Certified Technology Associate - SAP Fiori System Administration SAP Certified Development Associate - SAP Fiori Application Developer SAP Certified Citizen Developer Associate - SAP Build Low-code/No-code Applications and Automations SAP Certified Development Associate - SAP Extension Suite SAP Certified Development Associate - SAP Extension Suite SAP Certified Development Associate - ABAP with SAP NetWeaver 7.40 SAP Certified Development Associate - SAP HANA 2.0 SPS05 SAP Certified Associate - Back-End Developer - ABAP Cloud SAP Certified Development Associate - SAP HANA Cloud 1.0 SAP Certified Development Associate - SAP HANA Cloud 1.0 SAP Certified Development Associate - SAP Cloud SDK Extensibility Developer SAP Certified Development Associate - SAP HANA Cloud Platform (Edition 2016) SAP Certified Development Associate - SAP S/4HANA Cloud SDK Extensibility Developer SAP Certified Development Associate - SAP Cloud SDK Extensibility Developer 2022

Find all my badges on Credly.com.

cds-launchpad-plugin's People

Contributors

carlonnheim avatar corporateuser avatar egnedel avatar geert-janklaps avatar github-actions[bot] avatar gowale avatar gregorwolf avatar marianfoo avatar nils avatar nlaenger avatar schiwekm avatar the-docta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cds-launchpad-plugin's Issues

update do README to reflect current version

Hi,

the README should be updated to reflect the current state.

Cause the setup has changed:

  • with using of the cds plugin system - the setup in server.js ist not required
  • the option/setting for the launchpad have moved to cds.env...

regards
Norbert

Tile duplicated

Hi.
I have 4 CAP apps in the same project.
image

When I open the launchpad, 5 tiles are displayed instead of 4, the last one is duplicated.
image

cds-launchpad-plugin v2.2.0
node v18.19.0

How can I fix it?

Thanks.

Section `sapux` in package.json deprecated with UI5 Tooling V3

With UI5 Tooling 3.0 the sapux section in the package.json is deprecated and no longer needed (see UI5 Tooling 3.0). Therefore, my CAP project didn't have the section. Unfortunately, without this section the plugin does not show any UI5 application.

Thanks to your blog post I could fix the issue. Is it possible to determine the UI5 applications another way? I think it is not wise to use deprecated mechanisms.

Nevertheless, thanks for the great work.

Changes not reflected in Launchpad

Hi there,

Changes are not reflected in the launchpad once it's made in the Fiori/UI5 app.
Have to restart the CAP local server to see the changes.

Thanks

"Reuse" library support?

Hi @geert-janklaps,

I have a "reuse library" in my project, and I'm using cds-launchpad-plugin in combination with cds-ui5-plugin.

Now when I want to to use a resource MyResource from my.namespace.library from one of my applications (my.namespace.app1), it won't be able to load that resource (because it's trying to load from
https://ui5.sap.com/resources/my/namespace/library/MyResource.js which is the last resort).

I think two things would need to be changed to enable that use case:

  1. cds-ui5-plugin should serve also libraries (as far as I understood, it does not do that at the moment).
  2. cds-launchpad-plugin needs to add resourceroots to the UI5 bootstrap element in the sandbox launchpad.

But before I open an issue over at cds-ui5-plugin and try to create corresponding pull requests on both components, I first wanted to check with you (and other potential readers) if there's another solution I might have missed.

appConfigPath in Setup is not implemented

Hi,
I have the requirement to start the Launchpad tiles in different subdirectories.

But the appConfigPath with my own config doesn_t work.

I used this code:
app.use(handler.setup({theme:'sap_horizon', version: '1.99.0', appConfigPath: '/fiori/appconfig/fioriSandboxConfig'}));

Is it possible to implement. If not, could you please adjust

in index.js line 149
// App URL
const url = /${element.replace(cds.env.folders.app, '')}/webapp;

my element 'main-app/app/backend' is replaced to /main-app/backend, but this is wrong. It should be: /main-app/app/backend

Thank you in advance.

sap.app - i18n - bundleUrl not yet supported

Hi @geert-janklaps,

I try to follow the best practice described in UI5ers Buzz #54: I18n with supportedLocales and fallbackLocale configuration and added the following to my manifest.json:

{
    "_version": "1.45.0",
    "sap.app": {
        "id": "environments",
        "type": "application",
        "i18n": {
            "bundleUrl": "i18n/i18n.properties",
            "supportedLocales": [
                "en"
            ],
            "fallbackLocale": "en"
        },

Unfortunately that causes this error:

ENOENT: no such file or directory, open '/app/environments/webapp/[object Object]'
    at Object.openSync (node:fs:600:3)
    at Object.readFileSync (node:fs:468:35)
    at /node_modules/cds-launchpad-plugin/src/index.ts:93:31
    at Array.forEach (<anonymous>)
    at cds_launchpad_plugin.prepareAppConfigJSON (/node_modules/cds-launchpad-plugin/src/index.ts:73:25)
    at /node_modules/cds-launchpad-plugin/src/index.ts:34:34
    at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/node_modules/express/lib/router/index.js:328:13)
    at /node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/node_modules/express/lib/router/index.js:346:12)

I would suggest to look by default for:

let i18nPath = cds.root + '/' + element + '/webapp/' + manifest["sap.app"].i18n.bundleUrl;

and fallback only when empty to the current implementation. What do you think?

Best Regards
Gregor

Add check that sap.app.i18n.bundleUrl is not undefined

With #9 we've added Support for the manifest.json config sap.app.i18n.bundleUrl. But in cap-sflight the i18n configuration is done with bundleName. I've tried adding cds-launchpad-plugin with the commit gregorwolf/cap-sflight@53e0414 but get the following error when I access the Launchpad:

[cds] - โ—๏ธUncaught Error: ENOENT: no such file or directory, open '/Users/gwolf/Documents/Projects/cap/cap-sflight/app/travel_processor/webapp/undefined'
    at Object.openSync (node:fs:582:18)
    at Object.readFileSync (node:fs:461:35)
    at /Users/gwolf/Documents/Projects/cap/cap-sflight/node_modules/cds-launchpad-plugin/dist/index.js:199:57

The error occurs as bundleUrl is used without checking to be undefined.

I haven't found bundleName in the documentation Supported Locales and Fallback Chain. In Descriptor for Applications, Components, and Libraries (manifest.json) I find it only in the context of models. So I think the use in cap-sflight is incorrect.

But if you agree I will add a check that sap.app.i18n.bundleUrl is not undefined.

Typescript support for UI5 app

If the ui5 apps are written in Typescript this plugin does not seem to work for me. Maybe I am missing some setting?
I use the cds-plugin-ui5 plugin which ties the ui5 build system (typescript compile etc) into cds watch. It seems the setup of cds-launchpad-plugin runs before that process kicks in and there is no Component.js yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.