PeWu / topola-viewer

Topola Genealogy Viewer – interactive genealogy visualization
https://pewu.github.io/topola-viewer
Apache License 2.0
213 stars 54 forks source link

Why Kennedy, Shakespeare, Maria and URL .ged is not working on hosting or VPS #165

Open assanj opened 10 months ago

assanj commented 10 months ago

Why Kennedy, Shakespeare, Maria and "open URL .ged" are not working on hosting or VPS?

I have check it on VPS. I have check it on hosting server under Letsencrypt domain. I have load it from https://github.com/PeWu/topola-viewer/archive/refs/heads/gh-pages.zip I have build app by myself from git under NPM

but in all combinations - the result is the same - file load error - Failed to fetch

topola-webpack is working okey in all cases with the same .ged. LOCAL ged is working okey in all cases with the same .ged.

Please, i need help!

Thank U!

WITH ALL DUE RESPECT! I think (!), we all don't have the task of looking at the remote URL, we increasingly want to see our personal GED saved on our hosting server. There is no need to spend so much effort on topolaproxy.bieda.it (cors-anywhere proxy) Please, just give the opportunity to open .GED file with the default name from the same directory as INDEX.HTML. Without any bar menus for downloading files from the outside. Need a product like TOPOLA_WEBPACK only with search functionality + details by person.

Let's focus on GED parsing together/ Perhaps you need to make some kind of file parsing logging system. Hard times are coming with the new XML formats from the brothers in familysearch. Thank you vary much again and again.

Best regards to all!

PeWu commented 10 months ago

Thanks for submitting the issue. This is right, the example links on the front page don't work when you're hosting Topola Viewer yourself because of CORS issues.

However, if you're looking to host Topola Viewer and also the GEDCOM files yourself, construct the URL like this: https://example.com/#/view?url=https://example.com/my_family.ged&embedded=true&handleCors=false (Assuming you're hosting the GEDCOM file at https://example.com/my_family.ged).

The other URL options are listed here: https://github.com/PeWu/topola-viewer#additional-options

I hope this helps. I guess the documentation could be improved :smile:

assanj commented 10 months ago

Thank you very much. And what about pathes to .jpeg files in gedcom tag <2 FILE ... > for individuals in my folder https://example.ru/pics/ in this embedded case? Is it unavailable in embedded case? Is the search menu for indi also unavailable in the mobile version (non-landscape mode) for embedded? People cant find it without talks about it. Maybe it not hard to make a special search button in ScreenSize.SMALL?

PeWu commented 10 months ago

It will work correctly if you reference the image file using the full URL. E.g.

2 FILE https://example.com/pics/person1.jpg

Adding the search to mobile view is something that is definitely doable. I created a separate issue for it: https://github.com/PeWu/topola-viewer/issues/166

assanj commented 10 months ago

Since the GEDCOM file contains confidential personal data, is it possible to hide the path to the file in embedded mode by adding a certain Variable to the path, which is SET during Build, which can modify the path to a some folder defined in Variable? So one path will be specified in the address bar and another file will be implemented. By default, the variable is left empty so that the visible is equivalent to the actual. Can you tell me in which line of code you I can make such a change by myself.

Even better, through such a setting of the full embedded mode URL in variable in the code, you can make a beautiful appeal to the domain without a long string with parameters. just a www.example.com. it will be great. So two goals:

  1. hide gedcom file
  2. clear pretty url address
PeWu commented 10 months ago

I added an option to the build process to specify the GEDCOM URL in build time. See https://github.com/PeWu/topola-viewer#build-for-your-own-data-only

Note that the contents of the GEDCOM file will still be accessible for those who know how to do it. Opening browser dev tools you can see requests that the browser makes, including the request to the GEDCOM URL.

assanj commented 6 months ago

Its nice. Thank u very much.