
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@uportal/app-framework
Advanced tools
Questions? Get in touch.
uPortal-app-framework
is a front-end framework for building web applications that users experience as "apps in the portal".
This package includes the uPortal-home
header, settings, footer, and some reusable components :
Learn more about the reusable components on our docs page
uportal-app-framework provides the primary HTML page at the root of the context that hosts your AngularJS single page application. In order to introduce your own content, uportal-app-framework's extension point is 'my-app/main.js'.
In your existing Maven war project, add the following dependency:
<dependency>
<groupId>org.apereo.uportal</groupId>
<artifactId>uportal-app-framework</artifactId>
<version>x.y.z</version>
<type>war</type>
</dependency>
(uportal-app-framework is available in The Central Repository.)
Start by creating the folder 'src/main/webapp/my-app' within your Maven war project, and copy uportal-app-framework's main.js in to it. uportal-app-framework includes RequireJS to help you load any additional JavaScript assets you wish, you'll do that in this file.
See my-app-seed for a great starter app using this frame.
This gives you the basic frame in a static content type way. Just add your files to the proper directory and you should be all set. This module is still a work in progress. Note it only works right now as the root context (if you want to change, update the index.html). This module is mostly used for development on the frame itself.
In components/js/app-config.js
set
SERVICE_LOC.portalLayoutRestEndpoint
to /portal/api/layout
, andSERVICE_LOC.widgetApi.entry
to staticFeeds/
to source the mock data for the example the home page showcasing some widgets.
We love tests. We setup karma to run our tests.
To run the test suite:
npm test
To build and run on a Superstatic server:
npm run static:dev
You can also create a artifact using maven. There's a pom.xml file in the root directory. The maven build will use the normal npm build and bundle into a deliverable war file.
To run the Jekyll docs locally:
cd docs
bundle exec jekyll serve
You may need to install the Jekyll bundler on your machine. See Jekyll's quick-start guide for instructions.
FAQs
Application Framework for uPortal
We found that @uportal/app-framework demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.