dashy icon indicating copy to clipboard operation
dashy copied to clipboard

Multiple pages not working

Open saravanaskanda opened this issue 2 years ago • 5 comments
trafficstars

Environment

Self-Hosted (Docker)

System

Firefox 113.0 , pop os 20.04 , docker 23.06

Version

2.1.1

Describe the problem

Multiple pages not working. giving me error section not found. have added routingMode: hash in appconfig

showing response 200 for pages and only error is showing in console no section "ctf"

2023-07-11_11-55

below are starting lines from conf.yml

  ---
  pages:
  - name: CTF
    path: 'ctf.yml'
  - name: sysmon
    path: 'sysmon.yml'
  - name: homelab
    path: 'homelab.yml'
  pageInfo:
    title: Page
    navLinks:
    - title: Home
      path: /
    - title: About
      path: /about
  appConfig:
    routingMode: hash
    theme: one-dark
    fontAwesomeKey: 13014ae648
    enableFontAwesome: true
  sections:
  - name: Productivity
    items:
    - title: ProtonMail
      description: Secure Encrypted Email
      icon: favicon
      url: https://mail.protonmail.com/

below id starting lines from ct.yml

---
pageInfo:
  title: CTF Toolbox
sections:
- name: ctf
  icon: far fa-wifi
  displayData:
    rows: 2
  items:
  - title: BurpSuite
    description: A graphical tool to testing website security
    icon: #
    url: https://portswigger.net/burp
  - title: Commix
    description: Automated All-in-One OS Command Injection and Exploitation Tool
    icon: #

Tried yarn build-start in the docker not succeeding

Additional info

No response

Please tick the boxes

saravanaskanda avatar Jul 11 '23 07:07 saravanaskanda

Running into the same issue, was working until recently.

mkin701 avatar Jul 17 '23 21:07 mkin701

She notes this in the doc for pages:

Note that since page paths are required by the router, they are set at build-time, not run-time, and so a rebuild (happens automatically) is required for changes to page paths to take effect (this only applies to changes to the pages array, rebuild isn't required for editing page content).

I also did not have pages work after adding them to the config, and I think the issue is the "(happens automatically)" in the doc. That part doesn't seem to happen. So you can either completely delete/re-install the docker image, or you can run 'yarn build' in the container. ie: docker exec -it dashy yarn build

ninthwalker avatar Aug 21 '23 05:08 ninthwalker

I also did not have pages work after adding them to the config, and I think the issue is the "(happens automatically)" in the doc. That part doesn't seem to happen. So you can either completely delete/re-install the docker image, or you can run 'yarn build' in the container. ie: docker exec -it dashy yarn build

Disclaimer: I am not a Linux guru by any means

I ran the build command you mentioned and I am still not able to get this to work with gist (also tried the manual button in settings).

I got it to work with a local yaml file (this is more preferred for my case anyway); but on the new page, it shows the sections from the main page as well as the sections configured on the new page. Is there a way to delete these sections from the new page or hide them somehow?

That's the only drawback I have with Dashy; the customization of the layout of sections/pages :(

Love the project, super functional, and honestly, it's a huge help. I am not talking bad about it at all, and the dev seems super awesome <3

retnuh-code avatar Sep 23 '23 04:09 retnuh-code

I downloaded the newest docker image and deployed it again, but it still does not work. I can create the pages in the config and they appear as buttons on the top, but none of them link to the right page/load the corresponding config yml. I'd a sandbox yml page with all the experimental stuff and I cant access it anymore.

So, the pages feature in Dashy is essentially broken for all? Tagging @Lissy93 in case she can think of any workarounds.

rajivvishwa avatar Nov 22 '23 06:11 rajivvishwa

Updating here. Looks like I got it to work by forcing a Rebuild Application in Configuration options in the UI.

image

rajivvishwa avatar Nov 22 '23 08:11 rajivvishwa

It works only with a rebuild. But why?

The solution docker exec -it dashy yarn build works also the solution from @rajivvishwa described in the picture works.

But is it possible to solve this without permanent rebuilding?

ManuelReschke avatar Feb 27 '24 10:02 ManuelReschke

But is it possible to solve this without permanent rebuilding?

Currently, a rebuild is required for changes to take effect. I'm working on a solution to this.

Lissy93 avatar Feb 27 '24 15:02 Lissy93

Hi This problems seems to be related to dashy not automatically rebuilding on changes, see #1479 and https://github.com/Lissy93/dashy/issues/1290#issuecomment-1884249018 A new release has just been published, which should fix this issue, so please upgrade to the latest version. If this is not the case just respond back to this ticket and I'll reopen this issue. Thanks and have a nice day.

CrazyWolf13 avatar Mar 03 '24 17:03 CrazyWolf13