Skip to content

Commit ff0cb82

Browse files
author
sur.la.route
authored
Merge pull request #32 from atlas-bi/dev
Dev
2 parents b687dad + 6b36189 commit ff0cb82

File tree

359 files changed

+1036
-14797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

359 files changed

+1036
-14797
lines changed

gulpfile.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
const gulp = require('gulp');
2+
const autoprefexer = require('gulp-autoprefixer');
3+
const sass = require('gulp-sass')(require('sass'));
4+
const replace = require('gulp-replace');
5+
const { fontawesomeSubset } = require('fontawesome-subset')
6+
//const del = require('del');
7+
const purgecss = require('gulp-purgecss');
8+
const cssnano = require('gulp-cssnano');
9+
// const concat = require('gulp-concat');
10+
// const rename = require('gulp-rename');
11+
// const uglify = require('gulp-uglify');
12+
13+
14+
gulp.task('font:inter', function() {
15+
return gulp.src('node_modules/@fontsource/inter/**/*').pipe(replace(/\.\/files\//g, '/font/inter/files/')).pipe(gulp.dest('web/wwwroot/font/inter'))
16+
});
17+
18+
gulp.task('font:rasa', function() {
19+
return gulp.src('node_modules/@fontsource/rasa/**/*').pipe(replace(/\.\/files\//g, '/font/rasa/files/')).pipe(gulp.dest('web/wwwroot/font/rasa'))
20+
});
21+
22+
23+
gulp.task('font:fontawesome', function(done) {
24+
//del.sync('web/wwwroot/font/fontawesome/webfonts', {force:true});
25+
fontawesomeSubset({
26+
regular:['envelope', 'thumbs-up', 'play-circle', 'star'],
27+
solid: ['code','quote-left', 'reply', 'reply-all', 'paper-plane','heading', 'times', 'folder', 'check', 'play', 'star','folder-plus', 'file-upload', 'save','angle-down','sort', 'folder-open','link','grip-lines', 'sliders-h', 'wrench','italic', 'user', 'list-ol', 'list-ul', 'chevron-left', 'chevron-right','bold', 'search', 'edit', 'trash', 'star', 'share', 'plus', 'chart-bar', 'universal-access', 'trash-alt']
28+
}, 'web/wwwroot/font/fontawesome/webfonts');
29+
done();
30+
});
31+
32+
gulp.task('sass', function() {
33+
return gulp.src("web/wwwroot/scss/**/*.scss")
34+
.pipe(sass().on('error', sass.logError))
35+
.pipe(
36+
purgecss({
37+
content: ['web/Pages/**/*.cshtml', 'web/wwwroot/js/**/*.js', 'web/wwwroot/lib/**/*.js'],
38+
safelist: ['breadcrumb'],
39+
whitelist: ['breadcrumb']
40+
})
41+
)
42+
.pipe(autoprefexer())
43+
.pipe(cssnano())
44+
.pipe(gulp.dest('web/wwwroot/css/'))
45+
});
46+
47+
48+
49+
gulp.task('build', gulp.parallel('font:inter','font:rasa', gulp.series('font:fontawesome','sass')));
50+
51+
gulp.task('watch', gulp.series('build', function (cb) {
52+
gulp.watch('web/wwwroot/**/*.scss', gulp.series('sass'));
53+
gulp.watch('web/font/fontawesome/**/*.scss', gulp.series('font:fontawesome','sass'));
54+
cb();
55+
}));

gulpfile.js/index.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

gulpfile.js/tasks/build.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

gulpfile.js/tasks/packages.js

Lines changed: 0 additions & 59 deletions
This file was deleted.

gulpfile.js/tasks/style.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

gulpfile.js/tasks/watch.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

package.json

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,24 @@
1010
"last 2 Safari versions"
1111
],
1212
"dependencies": {
13-
"@babel/cli": "^7.14.8",
14-
"@babel/core": "^7.15.0",
15-
"@babel/preset-env": "^7.15.0",
16-
"@fortawesome/fontawesome-free": "^5.15.4",
1713
"bulma": "^0.9.3",
18-
"fontawesome-subset": "^2.0.0",
19-
"gulp": "^4.0.2",
20-
"handlebars": "^4.7.7"
14+
"gulp": "^4.0.2"
2115
},
2216
"description": "Atlas BI Library",
2317
"devDependencies": {
24-
"@creativebulma/bulma-badge": "github:christopherpickering/bulma-badge#patch-1",
18+
"@creativebulma/bulma-badge": "^1.0.1",
2519
"@creativebulma/bulma-tooltip": "^1.2.0",
26-
"@csstools/postcss-sass": "github:sinankeskin/postcss-sass",
27-
"@fontsource/inter": "^4.5.0",
28-
"@fontsource/rasa": "^4.5.2",
29-
"@fullhuman/postcss-purgecss": "^4.0.3",
30-
"autoprefixer": "^10.3.3",
31-
"bulma-switch": "github:christopherpickering/bulma-switch#patch-1",
32-
"cssnano": "^5.0.8",
33-
"del": "^6.0.0",
34-
"fonteditor-core": "^2.1.8",
35-
"gulp-postcss": "^9.0.0",
36-
"gulp-purgecss": "^4.0.3",
20+
"@fontsource/inter": "^4.5.1",
21+
"@fontsource/rasa": "^4.5.3",
22+
"@fortawesome/fontawesome-free": "^5.15.4",
23+
"bulma-switch": "^2.0.0",
24+
"fontawesome-subset": "^3.0.0",
25+
"gulp-autoprefixer": "^8.0.0",
26+
"gulp-cssnano": "^2.1.3",
27+
"gulp-purgecss": "^4.1.3",
3728
"gulp-replace": "^1.1.3",
38-
"gulp-sass": "^5.0.0",
39-
"postcss": "^8.3.6",
40-
"postcss-cli": "^8.3.1",
41-
"postcss-sort-media-queries": "^3.11.12",
42-
"sass": "^1.38.1"
29+
"gulp-sass": "^5.1.0",
30+
"sass": "^1.45.2"
4331
},
4432
"homepage": "https://demo.atlas.bi",
4533
"license": "AGPL-3.0-or-later",

web/Helpers/Extensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public static Boolean CheckHrxPermissions(Atlas_WebContext _context, int ReportO
195195
where ug.User.Username == username
196196
select ug.GroupId).Contains(g.GroupId)
197197
select g.GroupId).ToList().Count();
198-
if (hrx > 1)
198+
if (hrx >= 1)
199199
{
200200
return true;
201201
}
@@ -206,7 +206,7 @@ join h in _context.ReportObjectHierarchies.Where(x => x.ChildReportObjectId == R
206206
where ug.User.Username == username
207207
select ug.GroupId).Contains(g.GroupId)
208208
select g.GroupId).ToList().Count();
209-
if (hrg > 1)
209+
if (hrg >= 1)
210210
{
211211
return true;
212212
}

web/Pages/AccessControl/Index.cshtml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
ViewData["Title"] = "Access Control";
2626
}
2727

28-
@section css {
29-
<link rel="stylesheet" href="/css/access.min.css" inline />
30-
}
3128

3229
@section js {
3330
<script async src="/js/access.min.js" inline></script>

web/Pages/Collections/Details/_Links.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
else
7676
{
7777
<div style="position: relative;">
78-
<span class="tt-top" style="color:grey;position: relative;white-space: nowrap;cursor:default" data-tooltip="Login to Hyperspace to run report.">Run</span>
78+
<span class="tt-top" style="color:grey;position: relative;white-space: nowrap;cursor:default" data-tooltip="Run from the Hyperspace report library.">Run</span>
7979
</div>}
8080
}
8181
@if (t.EditReportUrl != null && t.EditReportUrl != "" && @Model.Permissions.Contains(38))

0 commit comments

Comments
 (0)