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

CDN help #8507

Open
jhaydtw opened this issue Nov 5, 2018 · 5 comments
Open

CDN help #8507

jhaydtw opened this issue Nov 5, 2018 · 5 comments

Comments

@jhaydtw
Copy link

jhaydtw commented Nov 5, 2018

I wish I knew more about this, but here is the issue from my developers:


We need the directory structure to map to the .css and .js files.

What do we include to get all these files? Including the datatables css and js files?

For example this is base directory we have:
https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_27/

Then we add /cdts/compiled/soyutils.js to get this file:
https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_27/cdts/compiled/soyutils.js
And this cdts/compiled/wet-en.js to get this one:
https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_27/cdts/compiled/wet-en.js

I accidentally figured out this jquery file I needed: js/jquery/2.1.4/jquery.min.js
https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_27/js/jquery/2.1.4/jquery.min.js

But we need lots of other files, like for example : https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js

Is there a list somewhere? Is there a place to view the cdn tree?

Thanks,
Jeff

@ghost
Copy link

ghost commented Nov 5, 2018

See https://datatables.net for more features of the plugin.

AND

See table.js on how WET loads the table (you don't need to link to the file just needs to exist on the server).

FYI: WET excludes some features for accessibility reason.

@RobJohnston
Copy link
Contributor

RobJohnston commented Nov 5, 2018

The download would show you the relative paths: http://wet-boew.github.io/wet-boew/docs/versions/dwnld-en.html

But if I understand, you shouldn't be digging for individual JavaScript and CSS files! Look at the code-behind for any page and you'll see the links for the wet-boew.js files, for example, https://www.canada.ca/etc/designs/canada/wet-boew/js/wet-boew.min.js. This should be what you need.

@ghost
Copy link

ghost commented Nov 5, 2018

Also if your developers need help there is a weekly code sprint usually on Tuesday. Imagine @duboisp could give you more information.

@duboisp
Copy link
Member

duboisp commented Nov 5, 2018

@shawnthompson

@shawnthompson
Copy link
Member

I don't think this is a CDTS issue. I think they are asking for all the WET JS files. @jhaydtw Can you please tell us more about your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants