stable

Clone or download

Read-only

Introduce @tuleap/project-sidebar-internal

This will let us use the project sidebar element inside the Tuleap codebase without duplicating the heavy fonts. When accounting for all the elements (code, CSS, HTML code), it is in fact almost worth it in term of size to re-use the element and it ensures we provide the same experience everywhere. There will be a small runtime cost due to Vue but it is negligible. The explicit dependency to @tuleap/core has been replaced by a relative path. Accessing the code via @tuleap/core creates a symlink to an upper directory which can put tools iterating the files of the codebase into a loop. No functionnal changes, you can go to both packages and run `pnpm run dev` to play with them. Part of request #23465 Publish a project sidebar custom element Change-Id: If9b47d10f451a33c2f9203c04b179ac4bc926845

Modified Files

Name
M .eslintrc.js +1 −1 Go to diff View file
A src/scripts/lib/project-sidebar-internal/.gitignore +1 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/LICENSE +21 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/README.md +37 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/dev-loader-style.scss +26 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/dev-loader.ts +54 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/index.html +23 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/jest.config.js +31 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/package.json +36 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/pnpm-lock.yaml +242 −0 Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/LinkedProjects.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/LinkedProjects.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/PrivacyBadge.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/PrivacyBadge.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/ProjectAnnouncement.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/ProjectAnnouncement.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/ProjectFlags.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/ProjectFlags.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/ProjectShieldIcon.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/SidebarHeader.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/SidebarHeader.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/__snapshots__/LinkedProjects.test.ts.snap Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/__snapshots__/PrivacyBadge.test.ts.snap Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/__snapshots__/ProjectFlags.test.ts.snap Go to diff View file
R src/scripts/lib/project-sidebar/src/Header/__snapshots__/SidebarHeader.test.ts.snap Go to diff View file
R src/scripts/lib/project-sidebar/src/ProjectSidebar.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/ProjectSidebar.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/SidebarCollapseButton.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/SidebarCollapseButton.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/SidebarFooter.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/SidebarFooter.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/SidebarLogo.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/SidebarLogo.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/Tools/Tool.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/Tools/Tool.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/Tools/Tools.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/Tools/Tools.vue Go to diff View file
R src/scripts/lib/project-sidebar/src/__snapshots__/ProjectSidebar.test.ts.snap Go to diff View file
R src/scripts/lib/project-sidebar/src/configuration.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/configuration.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/font-face-names.scss Go to diff View file
R src/scripts/lib/project-sidebar/src/fontawesome-classes.scss Go to diff View file
R src/scripts/lib/project-sidebar/src/injection-symbols.ts Go to diff View file
A src/scripts/lib/project-sidebar-internal/src/load-custom-element.test.ts +35 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/src/load-custom-element.ts +62 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/src/main.ts +25 −0 Go to diff View file
R src/scripts/lib/project-sidebar/src/project-sidebar-example-config.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/shims.d.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/strict-inject.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/strict-inject.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/url-sanitizer.test.ts Go to diff View file
R src/scripts/lib/project-sidebar/src/url-sanitizer.ts Go to diff View file
A src/scripts/lib/project-sidebar-internal/tsconfig.json +12 −0 Go to diff View file
A src/scripts/lib/project-sidebar-internal/vite.config.ts +56 −0 Go to diff View file
M src/scripts/lib/project-sidebar/dev-loader.ts +1 −1 Go to diff View file
M src/scripts/lib/project-sidebar/jest.config.js +0 −4 Go to diff View file
M src/scripts/lib/project-sidebar/package.json +1 −7 Go to diff View file
M src/scripts/lib/project-sidebar/pnpm-lock.yaml +2 −227 Go to diff View file
M src/scripts/lib/project-sidebar/src/font-faces.scss +7 −4 Go to diff View file
A src/scripts/lib/project-sidebar/src/main.test.ts +37 −0 Go to diff View file
M src/scripts/lib/project-sidebar/src/main.ts +3 −36 Go to diff View file
M src/scripts/lib/project-sidebar/vite.config.ts +0 −2 Go to diff View file
M tests/jest/jest.base.config.js +1 −1 Go to diff View file