Skip to content

Conversation

@line-o
Copy link
Member

@line-o line-o commented Jun 18, 2021

Get frontend dependencies via npm and bundle with gulp. This step is integrated into the maven build.

Dependencies:

  • bootstrap 3.4.1 (was 3.0.3)
  • jQuery 1.12.4 (was 1.9.1)
  • prismjs 1.23.0 (replacing ACE editor for code highlighting)

There were some resources still referenced from shared resources, they are now bundled with this package (exist.css, a few background images and SVGs and one xquery module dbutil.xqm).

Since the previously used ACE editor theme "Clouds" is not available for prism a custom theme was built. It aims to highlight function name variables, their types, modifiers and the return type of the function in question (for a side by side comparison see the screenshot below).

Screenshot 2021-06-18 at 12 06 54

The header section is a little cleaner

Screenshot 2021-06-18 at 18 37 31

refs eXist-db/exist#3914

line-o added 9 commits June 17, 2021 14:32
- in all modules and
- in the code example in index-keys_5.md
Update bootstrap to v3.4.1 and jQuery to 1.12.4

- load all frontend dependencies with npm
- automate frontend build in gulpfile
- integrate npm and gulp build into maven
- remove $shared route from controller
- replace ACE editor with prismjs for highlighting code
- bundle dbutil module from shared resources
- use bundled copy of dbutil in scan module
- remove non-existing and unused site module from view.xql
- bundle all fonts, images and styles previously included from
  shared resources package
- remove dependency on shared-resources from repo.xml
- rename element with duplicate ID in index.html
- scope all function and variables to query.js
- refactor function checkLogin for readability and reusability
- use reindexIfLoggedIn for both buttons explicitly
- fix deprecated method to add event handlers in jQuery
- optimize SVGs powered-by.svg and existdb-web.svg using SVGO
- use optimized SVGs in footer and header
- remove blurry gif from header
- remove header.gif
- remove existdb.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants