Skip to content

Commit

Permalink
Merge branch 'master' into LIKA-627_upgrade_bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Dec 3, 2024
2 parents 6f46c73 + d2cbcf9 commit 9d4c862
Show file tree
Hide file tree
Showing 71 changed files with 1,906 additions and 1,390 deletions.
1 change: 0 additions & 1 deletion ansible/deploy-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
- postgres
- postgres-backup
- { role: ckan-extension, ckanext: ckanext-sentry }

- { role: ckan-extension, ckanext: ckanext-apicatalog }
- { role: ckan-extension, ckanext: ckanext-scheming }
- { role: ckan-extension, ckanext: ckanext-fluent }
Expand Down
8 changes: 4 additions & 4 deletions ansible/roles/ckan-ui/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
- name: rebuild ckanext-apicatalog less
shell: lessc "{{ apicatalog_path }}/less/main.less" "{{ apicatalog_ckanext_path }}/fanstatic/apicatalog/main.css"
- name: rebuild ckanext-apicatalog sass
shell: sass "{{ apicatalog_path }}/scss/main.scss" "{{ apicatalog_ckanext_path }}/fanstatic/apicatalog/main.css"

- name: rebuild ckanext-openapi_view less
shell: lessc "{{ apicatalog_path }}/less/openapi_view.less" "{{ apicatalog_ckanext_path }}/fanstatic/openapi_view.css"
- name: rebuild ckanext-openapi_view sass
shell: sass "{{ apicatalog_path }}/scss/openapi_view.scss" "{{ apicatalog_ckanext_path }}/fanstatic/openapi_view.css"

- name: Restart CKAN
shell: supervisorctl restart "{{ ckan_supervisor_name }}"
Expand Down
16 changes: 14 additions & 2 deletions ansible/roles/os-base/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,23 @@
- supervisor
- libxml2-dev
- libxslt1-dev
- node-less
- acl
- npm
- gulp


- name: Download sass
unarchive:
src: https://github.com/sass/dart-sass/releases/download/{{sass_version}}/dart-sass-{{sass_version}}-linux-x64.tar.gz
dest: /tmp
remote_src: yes

- name: Link sass binary
file:
src: /tmp/dart-sass/sass
dest: /usr/local/bin/sass
state: link


# Note: psycopg2 requires postgresql-server-dev

- name: Enable automatic installation of security upgrades
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/os-base/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ timezone: UTC
# Apt repository configuration
apt_source_url: http://archive.ubuntu.com

sass_version: 1.81.0
3 changes: 0 additions & 3 deletions ckanext/ckanext-apicatalog/buildless.sh

This file was deleted.

3 changes: 3 additions & 0 deletions ckanext/ckanext-apicatalog/buildsass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sass scss/main.scss --source-map=ckanext/apicatalog/public/base/main.css.map --source-map-url=/base/main.css.map --source-map-less-inline > ckanext/apicatalog/fanstatic/apicatalog/main.css
sass scss/openapi_view.scss --source-map=ckanext/apicatalog/public/base/openapi_view.css.map --source-map-url=/base/openapi_view.css.map --source-map-less-inline > ckanext/apicatalog/fanstatic/openapi_view.css
echo $(date): Compiled sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
main.css
main.css.map
openapi_view.css
openapi_view.css.map
/font-awesome/
/cookieconsent/cookieconsent.js
/cookieconsent/cookieconsent.css
Expand Down
12 changes: 6 additions & 6 deletions ckanext/ckanext-apicatalog/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ function bootstrapDatepickerCss() {

}

const bootstrapLessPath = './node_modules/bootstrap/less';
function bootstrapLess() {
return src(bootstrapLessPath + '/**/*')
.pipe(dest("vendor/bootstrap/less"))
const bootstrapSassPath = './node_modules/bootstrap-sass/assets/stylesheets';
function bootstrapSass() {
return src(bootstrapSassPath + '/**/*')
.pipe(dest("vendor/bootstrap-sass/stylesheets"))
}

exports.fontAwesomeCss = fontAwesomeCss;
exports.fontAwesomeFonts = fontAwesomeFonts;
exports.bootstrapDatepickerJs = bootstrapDatepickerJs;
exports.bootstrapDatepickerCss = bootstrapDatepickerCss;
exports.bootstrapLess = bootstrapLess;
exports.bootstrapLess = bootstrapSass;

exports.default = parallel(
fontAwesomeCss, fontAwesomeFonts,
bootstrapDatepickerJs, bootstrapDatepickerCss,
bootstrapLess
bootstrapSass
);
54 changes: 0 additions & 54 deletions ckanext/ckanext-apicatalog/less/ckan.less

This file was deleted.

11 changes: 0 additions & 11 deletions ckanext/ckanext-apicatalog/less/components/banner.less

This file was deleted.

33 changes: 0 additions & 33 deletions ckanext/ckanext-apicatalog/less/components/button.less

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions ckanext/ckanext-apicatalog/less/components/tags.less

This file was deleted.

Loading

0 comments on commit 9d4c862

Please sign in to comment.