Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
30c3867
initial commit
beaversd May 2, 2024
974a8d4
Initialize styles
beaversd May 2, 2024
4b76ebf
Initialize styles
beaversd May 2, 2024
ae75908
Adding the diagram
beaversd May 3, 2024
4484c61
compliable diagram component
guanmingwu May 4, 2024
c0a55d8
minor update
guanmingwu May 5, 2024
09fe9cc
updated to show legend
guanmingwu May 14, 2024
9f26746
added cdkdrag module to enable legend dnd
guanmingwu May 18, 2024
32184ac
expose PathwayDiagramService
guanmingwu May 31, 2024
19f2705
epxanded for added input/output accessory nodes
guanmingwu Jun 1, 2024
1a5185d
changed initZoom for new nodes or edges
guanmingwu Jun 4, 2024
46681b0
Used INJECT_TOKEN to set the diagram url
guanmingwu Jul 28, 2024
a8d8a3e
refactor to load the saved cytoscape json directly
guanmingwu Jul 29, 2024
1a9df5d
added a flag to use dbId, instead of stId, for curator tool
guanmingwu Aug 3, 2024
5ab8ab5
fixed a bug: block loading diagram when no diagramId
guanmingwu Aug 11, 2024
fc6e7b5
added a method to reset state
guanmingwu Aug 12, 2024
c0e6119
:bookmark: style publish 0.0.13
EliotRagueneau Sep 13, 2024
1b4e157
added a flag to block URL change from the diagram
guanmingwu Sep 23, 2024
a49a44c
Merge remote-tracking branch 'origin/dev' into dev
guanmingwu Sep 23, 2024
e6429bd
bug fix on blockRouterChange using Promise.reject()
guanmingwu Oct 7, 2024
faf9fd0
:arrow_up: Angular 18
EliotRagueneau Oct 21, 2024
59eaf1d
Merge remote-tracking branch 'origin/dev' into dev
EliotRagueneau Oct 21, 2024
b8c9dfd
:arrow_up: Angular 18
EliotRagueneau Oct 21, 2024
2166fd8
:truck: Prepare angular 19
EliotRagueneau Jan 24, 2025
f197459
Angular CLI update for packages - @angular/core@19, @angular/cli@19, …
EliotRagueneau Jan 24, 2025
d533504
@angular/core migration - explicit-standalone-flag
EliotRagueneau Jan 24, 2025
c80e242
@angular/material migration - migration-v19
EliotRagueneau Jan 24, 2025
c041d11
:arrow_up: Angular 19 + material 3
EliotRagueneau Jan 24, 2025
5bf6c74
:lipstick: Update style
EliotRagueneau Feb 4, 2025
94d6ab6
:wastebasket: Remove previous theme def
EliotRagueneau Sep 5, 2025
52a8838
updated reactome-cytoscape-style to the pathway browser version
guanmingwu Oct 11, 2025
e9de49e
updated related code to the latest version at pathway browser
guanmingwu Oct 11, 2025
76b6072
bug fix based on the new code
guanmingwu Oct 11, 2025
5adf09a
uncomment out a function
guanmingwu Oct 13, 2025
7c8af60
bug fix: getElements() should return nothing when token is empty
guanmingwu Oct 27, 2025
c94450b
Merge remote-tracking branch 'origin/dev' into dev
EliotRagueneau Jun 23, 2026
ee141b4
Update Angular core and CLI to 20 (ng update)
Oct 3, 2026
461dee1
Update Angular Material and CDK to 20 (ng update)
Oct 3, 2026
90efee5
Update Angular core and CLI to 21 (ng update)
Oct 3, 2026
cb2da4e
Update Angular Material and CDK to 21 (ng update)
Oct 3, 2026
548d470
Bring in WebsiteAngular's versions of the two style libraries
Oct 3, 2026
7ac4521
Declare what the cytoscape style really imports, and let ng-packagr w…
Oct 3, 2026
5059bd9
Make ngx-reactome-diagram build, against the cytoscape style it now has
Oct 3, 2026
c9a921c
Stop the demo app asking for a stylesheet that was deleted
Oct 3, 2026
05a1014
Review fixes: honest diagram peers, keep molecules visible, thenables…
Oct 3, 2026
d13f0c3
Remove a molecule's structure container when its structure fails to load
Oct 3, 2026
8fc5bb6
Bring in the style library's review fixes, and look up handlers per g…
Oct 3, 2026
09fbcd7
Merge pull request #1 from reactome/import-website-angular
adamjohnwright Oct 3, 2026
ad1d9b7
Test with Vitest through Angular's unit-test builder, and make the sp…
Oct 3, 2026
9a6d858
Lint as WebsiteAngular does, and tighten the compiler
Oct 3, 2026
42202d9
Build, lint and test every push and pull request
Oct 3, 2026
066eac1
Tell subscribers what the state was set to, and stop logging to consu…
Oct 3, 2026
d1758f9
Type-check specs with their own configs when linting
Oct 3, 2026
2c887a1
Merge pull request #2 from reactome/quality
adamjohnwright Oct 3, 2026
1bd2033
Merge main's initial commit into dev's history
Oct 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
47 changes: 47 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Tests

on:
push:
branches:
- main
- dev
pull_request:

permissions:
contents: read

jobs:
test:
name: Build, lint and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
run: npm ci

# In dependency order: the diagram and the demo app import the style
# library from dist/, so nothing else type-checks until it is built.
- name: Build the libraries
run: npm run build:libs

- name: Lint
run: npm run check:lint

- name: Test
run: npm test

- name: Build the demo app
run: npx ng build ngx-reactome-base

# What would be published: a package that packs is a package that installs.
- name: Pack the libraries
run: |
for lib in ngx-reactome-cytoscape-style ngx-reactome-style ngx-reactome-diagram; do
(cd "dist/$lib" && npm pack --dry-run)
done
46 changes: 46 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log
*/node_modules
*/package-lock.json

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
/.vscode/
/.angular/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
}
]
}
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
}
]
}
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
# ngx-reactome-base
# NgxReactomeBase

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.6.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `npm run build` to build the libraries and the demo app, in the order they depend on each other (`npm run build:libs` for the libraries alone). The build artifacts are stored in `dist/`.

## Running unit tests

Run `npm test` to run every project's unit tests with [Vitest](https://vitest.dev) through Angular's unit-test builder, or `ng test <project>` for one. The diagram's tests use the built style library, so run `npm run build:libs` first.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
Loading
Loading