Unwrap the Angular Routing
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, jekyll
Research direction
Start by reading app.js and the static-page routes it defines, then review the linked pull request (#89) and the Jekyll front-matter documentation. Done means every static page routed there has an equivalent directory or public HTML page with front matter and the old routing overhead is removed.
Written by the indexing model from the issue text.
Description
This is in relation to app.js, which sets the routing for the app.
Most of this file can go away and be replaced with YAML and Jekyll Front Matter syntax on the HTML page. For example https://rerum.io/#/about is routed like this in app.js
var rerum = angular.module('rerum', ['ui.bootstrap', 'ngRoute', 'ngAnimate','ngSanitize', 'angular-loading-bar', 'cfp.hotkeys', 'utils']);
rerum.config(['$routeProvider', '$locationProvider',
function ($routeProvider, $locationProvider) {
...
.when('/about', {
templateUrl: 'app/about/about.html'
})
}])
That is a fair amount of overhead for a static community site. Instead, all that is needed is an /about directory or a /public/about.html file with some YAML at the top.
---
title: About Page
permalink: /about
---
Do this for all static pages that are routed to by this app.js file.
- Dominant language
- JavaScript
- Stars
- 11
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CenterForDigitalHumanities/rerum
-
Unwrap the Angular /tools DirectoryPossibly taken @copilot-swe-agent claimed this 434 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
CenterForDigitalHumanities/rerum#91 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
RERUM style guideOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
eliminate the futureOpen
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in CenterForDigitalHumanities/rerum
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
bug code-annotation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
quarto-dev/quarto-cli#15215 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
521xueweihan/HelloGitHub#4133 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Hugo-SA/receita-random#20 ·
Maintainers usually reply within 1 day