Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jcu/web-framework

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jcu/web-framework

The web UI framework for building responsive, mobile-first web projects with University styling

  • 2.0.0-alpha.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

JCU Web Framework

User documentation

  • Bootstrap: https://getbootstrap.com/docs/4.4/
  • Icon reference: https://materialdesignicons.com/

Features

  • Fully-featured web front-end component library, styled with JCU colours and based on Bootstrap v4, including:

    • Responsive grid system
    • Layout and typography
    • Components like buttons, cards, navigation and more
    • Utilities
    • ...and everything else Bootstrap supports
  • JCU logos and website artwork

  • Iconography from Material Design Icons (optional)

  • Font families and CSS for Open Sans and Playfair Display (optional)

  • Dedicated CDN hosting of all resources, including fonts and iconography

Integration

The JCU Web Framework can be integrated with any type of web project you're working on – particularly those that support Bootstrap. The Framework is in essence a themed version of Bootstrap and can be used as such, like so:

Usage

JCU Web Framework resources can be included in your project from JCU's official CDN in a similar manner to that of BootstrapCDN:

<!-- In the <head> of your project -->
<link rel="stylesheet" href="https://cdn.jcu.edu.au/web-framework/2.0.0-alpha.6/css/jcu-web-framework.min.css">
<link rel="stylesheet" href="https://cdn.jcu.edu.au/web-framework/2.0.0-alpha.6/css/fonts.min.css">

<!-- Before the closing </body> tag in your project -->
<script src="https://cdn.jcu.edu.au/web-framework/2.0.0-alpha.6/js/jquery.min.js"></script>
<script src="https://cdn.jcu.edu.au/web-framework/2.0.0-alpha.6/js/popper.min.js"></script>
<script src="https://cdn.jcu.edu.au/web-framework/2.0.0-alpha.6/js/bootstrap.min.js"></script>

Refer to the official User Documentation links above for how to build pages using Bootstap.

If you'd like to use the optional iconography library, you can add the following as well:

<!-- In the <head> of your project -->
<link rel="stylesheet" href="https://cdn.jcu.edu.au/web-framework/2.0.0-alpha.6/css/materialdesignicons.min.css">

You can now use icons by following the instructions at https://dev.materialdesignicons.com/getting-started/webfont (skipping the setup steps as you've already done them).

Development

Builds utilise the same style of package scripts defined in package.json that Bootstrap does, with some additional steps and changes for the inclusions in this package. At a high level, however, the process looks like so:

  1. CSS: test, compile and minify CSS and font dependencies
  2. JS: collate all dependencies
  3. Images: minify and collate all images
  4. Documentation: assemble and build

The resulting distribution is then published to the CDN and documentation published accordingly online (coming shortly).

Build process

  1. Install this package and its dependenies with:

    yarn
    
  2. Set up a local environment with rclone config and create a remote called jcu-cdn. Ask a maintainer if you're unsure what the configuration should contain.

  3. Execute a build with:

    yarn dist
    
  4. Test the resulting build.

    At present during the alpha and beta process, this involves manual testing with the HTML documentation and checking against in-development applications.

  5. Build a release and copy the distribution to CDN via:

    yarn release
    
  6. Update CHANGELOG.md with the current date and released version

  7. Commit the build to Git and tag accordingly:

    git commit CHANGELOG.md dist/ -m "Release v9.9.9"
    git tag v9.9.9
    
  8. Publish to NPM via the following:

    yarn publish
    

    Don't set a New version at this time. We'll update it ourselves in a moment.

  9. Update the working version number in the source code:

    yarn release-version [old-version eg 2.0.0] [new-version eg 2.0.1]
    git commit -a -m "Back to development"
    

    When using yarn release-version, ensure you omit any v prefix for version numbers.

  10. Push the results:

    git push
    git push --tags
    

Upgrades

Upgrading dependencies – including Bootstrap – takes place via:

yarn upgrade-interactive --latest

where you can inspect the recent changes and assess the impact of the dependency changes on the project. In general, minor or patch version changes should be fine to apply, provided everyone is following SemVer.

When it comes to Bootstrap itself, pay close attention to the release notes and the official blog for details of changes. As with other dependencies, the same SemVer rules apply but carefully check the resulting theme when built as regressions are always possible.

Once you've upgraded, inspect the documentation site to ensure styles and functionality is working as expected. We'll have more automated processes for this in the near future.

Accessibility

The JCU Web Framework aims to allow websites and applications that that use it to be compliant with WCAG 2.1 Level AA. As a component library, it is possible for system implementers and developers to mix and match components, add styles and integrate with applications in ways that may not meet WCAG requirements. One such example is using light text or button classes on top of a light background; the helper classes exist, but to enable a developer to create an accessible environment. In short, we strive to provide the toolkit that web systems can use to be fully accessible, but it is the responsibility of each application to test themselves.

Contributions are always welcome to improve accessibilty within this project and the core components it provides.

References

Guidelines

Sources

  • JCU Brand DNA v2.3 (retrieved 2019-07-16), adapted like so:

    • Certain colours were adjusted or selected for accessibility in terms of colour contrast
    • Open Sans is the primary and sans-serif font, and Playfair Display is set as the secondary and serif font
  • JCU website (accessed 2019-07-16)

  • Institutional logos (retrieved in .zip archive form, converted into web-compatible SVG format and colours set to match the JCU website logo)

    • 50th Anniversary logos had duplicate 0 (zero) and YEARS shapes removed from vectorised files (except small vertical/shield variants)
Flags

See https://www.pmc.gov.au/government/australian-national-symbols/australian-flags for details. Reproduction of the following resources is underst

Acknowledgements

Licensing

Use of the JCU Web Framework and its resources are limited to James Cook University projects and where appropriate permission is sought to use the branding. Specific aspects of the JCU Web Framework, such as logos and artwork, may be subject to their own approvals, copyright or licensing and users are advised to seek their own independent advice regarding their usage from the appropriate University departments.

FAQs

Package last updated on 14 May 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc