clippyjs icon indicating copy to clipboard operation
clippyjs copied to clipboard

clippy.min.js no longer works

Open krasnit opened this issue 4 years ago • 4 comments

There is a link in clippy.min.js to an external agents folder that is no longer active. This makes this js unable to display any agent. The latest link in this js is set to "clippy.BASE_PATH="//s3.amazonaws.com/clippy.js/Agents/", which is dead. To resolve the issue, download the agents folder from Github and edit this clippy.BASE_Path reference to point to the location of that downloaded folder on the local machine, or host it on a reliable external server and point it to there.

krasnit avatar Sep 27 '21 21:09 krasnit

also, gitcdn.xyz is also down. I'm not sure if it's just temporary, but I think it would be better to bundle the assets inside the package published to npm, and then use unpkg.com like https://unpkg.com/browse/[email protected]/ - (also, the intellij config files should be excluded 😛)

forivall avatar May 09 '22 18:05 forivall

I got this working by setting window.CLIPPY_CDN to https://cdn.jsdelivr.net/gh/pi0/clippyjs/assets/agents/ which links it directly to this github repo's current branch. jsdelivr.net seems to have a better service record than gitcdn.xyz

joeyparis avatar Aug 22 '22 17:08 joeyparis

I fixed it by changing the AWS links to point to the files within this repo.

clippy.js clippy.BASE_PATH = 'clippy/agents/';

load.js clippy.BASE_PATH = 'clippy/agents/';

clippy.min.js clippy.BASE_PATH = "clippy/agents/",

I can now load the agents fine.

djbritt avatar Jan 24 '23 02:01 djbritt

I created a fresh version of Clippy with a modern stack here. It uses typescript, rollupjs 2.x, no JQUERY, and lazy loading modules (no cdn). Hope it helps!

lizozom avatar Mar 06 '23 08:03 lizozom