-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DATASHADES-325 / update chart view creation
- Loading branch information
Showing
20 changed files
with
4,310 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
.charts-view .dataset-resource-form { | ||
position: relative; | ||
padding: 0; | ||
} | ||
.row.wrapper.charts-view .dataset-resource-form{position:relative;padding:0} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 10 additions & 18 deletions
28
ckanext/charts/templates/charts/snippets/charts_form_fields.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ckanext/charts/templates/scheming/form_snippets/chart_range.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@import "variables"; | ||
@import "mixins"; | ||
|
||
.row.wrapper.charts-view { | ||
|
||
.dataset-resource-form { | ||
position: relative; | ||
padding: 0; | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$black: black; | ||
$white: white; | ||
|
||
$screen-xs-min: 480px; | ||
$screen-sm-min: 768px; | ||
$screen-md-min: 992px; | ||
$screen-lg-min: 1200px; | ||
|
||
$border: 1px solid var(--ap-border-color); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const { resolve } = require("path"); | ||
const { src, watch, dest } = require("gulp"); | ||
const if_ = require("gulp-if"); | ||
const sass = require('gulp-sass')(require('sass')); | ||
const sourcemaps = require("gulp-sourcemaps"); | ||
const with_sourcemaps = () => !!process.env.DEBUG | ||
|
||
const themeDir = resolve("ckanext/charts/theme"); | ||
const assetsDir = resolve("ckanext/charts/assets"); | ||
|
||
const build = () => { | ||
return src(resolve(themeDir, "charts.scss")) | ||
.pipe(if_(with_sourcemaps(), sourcemaps.init())) | ||
.pipe(sass({ outputStyle: !!process.env.DEBUG ? 'expanded' : 'compressed' }).on('error', sass.logError)) | ||
.pipe(if_(with_sourcemaps(), sourcemaps.write())) | ||
.pipe(dest(resolve(assetsDir, "css"))) | ||
} | ||
|
||
|
||
const watchSource = () => { | ||
watch( | ||
themeDir + "/**/*.scss", | ||
{ ignoreInitial: false }, | ||
build | ||
) | ||
} | ||
|
||
|
||
exports.build = build; | ||
exports.watch = watchSource; |
Oops, something went wrong.