Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add demo warning banner #620

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Sep 15, 2024

Add demo warning banner. The text can be overridden in the Index configuration:

[website.demo]
warning = """
⚠️ Please be aware: This demo resets all data weekly. Torrents not complying with our Usage Policies will be removed immediately without notice. We encourage the responsible use of this software in compliance with all legal requirements.
"""

See torrust/torrust-index#730

@josecelano josecelano added this to the v3.0.0 milestone Sep 15, 2024
@josecelano josecelano linked an issue Sep 15, 2024 that may be closed by this pull request
@josecelano
Copy link
Member Author

The banner in light mode:

image

and dark mode:

image

Fixes this error:

```output
Run npm run build

> torrust-index-gui@3.0.0-beta build
> nuxt build

[log] Nuxt 3.11.2 with Nitro 2.9.6
[info] [nuxt:tailwindcss] Using Tailwind CSS from ~/assets/css/tailwind.css
[info] Building client...
[info] vite v5.2.13 building for production...
[info] transforming...

🌼   daisyUI [4](https://github.com/torrust/torrust-index-gui/actions/runs/10869961534/job/30161927416?pr=620#step:5:5).12.2
├─ ✔︎ 4 themes added		https://daisyui.com/docs/themes
╰─ ❤︎ Support daisyUI project:	https://opencollective.com/daisyui

[info] ✓ 172 modules transformed.
Error:  x Build failed in 6.21s
Error:  Nuxt Build Error: [vite]: Rollup failed to resolve import "torrust-index-types-lib" from "/home/runner/work/torrust-index-gui/torrust-index-gui/components/registration/RegistrationForm.vue?vue&type=script&setup=true&lang.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
  This is most likely unintended because it can break your application at runtime.
  If you do want to externalize this module explicitly add it to
  `build.rollupOptions.external`
  at viteWarn (node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:68871:27)
  at onRollupWarning (node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:68899:9)
  at onwarn (node_modules/vite/dist/node/chunks/dep-DEPSZ3SS.js:68[5](https://github.com/torrust/torrust-index-gui/actions/runs/10869961534/job/30161927416?pr=620#step:5:6)82:13)
  at node_modules/rollup/dist/es/shared/node-entry.js:18514:13
  at Object.logger [as onLog] (node_modules/rollup/dist/es/shared/node-entry.js:201[6](https://github.com/torrust/torrust-index-gui/actions/runs/10869961534/job/30161927416?pr=620#step:5:7)2:9)
  at ModuleLoader.handleInvalidResolvedId (node_modules/rollup/dist/es/shared/node-entry.js:1[9](https://github.com/torrust/torrust-index-gui/actions/runs/10869961534/job/30161927416?pr=620#step:5:10)104:26)
  at node_modules/rollup/dist/es/shared/node-entry.js:19062:26
Error: Process completed with exit code 1.
```
@josecelano josecelano linked an issue Sep 15, 2024 that may be closed by this pull request
@josecelano
Copy link
Member Author

ACK 562dd29

@josecelano josecelano self-assigned this Sep 15, 2024
@josecelano josecelano added Enhancement / Feature Request Something New Legal Licenses and other Official Documents - User - Enjoyable to Use our Software labels Sep 15, 2024
@josecelano josecelano merged commit cf18f58 into torrust:develop Sep 15, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- User - Enjoyable to Use our Software Enhancement / Feature Request Something New Legal Licenses and other Official Documents
Projects
None yet
1 participant