mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Rmove last BundleConfig parts, move fully to gulp.
This commit is contained in:
parent
db1c655db0
commit
15de87c91b
|
@ -28,6 +28,7 @@
|
|||
</NuGetPackageImportStamp>
|
||||
<UseGlobalApplicationHostFile />
|
||||
<TargetFrameworkProfile />
|
||||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
@ -271,24 +272,20 @@
|
|||
<Content Include="res\css\rtl.css.map">
|
||||
<DependentUpon>rtl.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="res\ts\bfs.js">
|
||||
<DependentUpon>bfs.ts</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="res\ts\bfs.js.map">
|
||||
<DependentUpon>bfs.js</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="robots.txt" />
|
||||
<Content Include="App_Code\PaginationHelpers.cshtml" />
|
||||
<Content Include="res\css\default.scss" />
|
||||
<None Include="bundleconfig.json" />
|
||||
<Content Include="res\css\rtl.scss" />
|
||||
<Content Include="res\css\dark.scss" />
|
||||
<Content Include="package.json" />
|
||||
<None Include="Properties\PublishProfiles\Milestone 1 [DEV].pubxml" />
|
||||
<Content Include="res\ts\bfs.js">
|
||||
<DependentUpon>bfs.ts</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="res\Web.config" />
|
||||
<Content Include="res\ts\bfs.js.map">
|
||||
<DependentUpon>bfs.ts</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="res\ts\bfs.min.js">
|
||||
<DependentUpon>bfs.js</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="res\css\light.scss" />
|
||||
<None Include="Scripts\jquery-2.2.4.intellisense.js" />
|
||||
<Content Include="Scripts\jquery-2.2.4.js" />
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
[
|
||||
{
|
||||
"outputFileName": "res/ts/bfs.min.js",
|
||||
"inputFiles": [
|
||||
"res/ts/bfs.js"
|
||||
]
|
||||
}
|
||||
]
|
|
@ -3,6 +3,9 @@ var gulp = require("gulp");
|
|||
var sass = require("gulp-sass");
|
||||
var cleanCss = require("gulp-clean-css");
|
||||
var sourceMaps = require("gulp-sourcemaps");
|
||||
var ts = require("gulp-typescript");
|
||||
var uglify = require("gulp-uglify");
|
||||
var autoprefixer = require("gulp-autoprefixer");
|
||||
|
||||
gulp.task("sass-compile",
|
||||
function ()
|
||||
|
@ -10,13 +13,34 @@ gulp.task("sass-compile",
|
|||
gulp.src("./res/css/*.scss")
|
||||
.pipe(sourceMaps.init())
|
||||
.pipe(sass())
|
||||
.pipe(autoprefixer({
|
||||
browsers: ["> 1% in GB", "IE 8"],
|
||||
cascade: false
|
||||
}))
|
||||
.pipe(cleanCss())
|
||||
.pipe(sourceMaps.write("./"))
|
||||
.pipe(gulp.dest("./res/css/"));
|
||||
});
|
||||
|
||||
gulp.task("typescript",
|
||||
function ()
|
||||
{
|
||||
var result = gulp.src("./res/ts/*.ts")
|
||||
.pipe(sourceMaps.init())
|
||||
.pipe(ts({
|
||||
target: "es5",
|
||||
sourceMap: false
|
||||
}));
|
||||
|
||||
return result.js
|
||||
.pipe(uglify())
|
||||
.pipe(sourceMaps.write("./"))
|
||||
.pipe(gulp.dest("./res/ts/"));
|
||||
});
|
||||
|
||||
gulp.task("watch-sass",
|
||||
function ()
|
||||
{
|
||||
gulp.watch("./res/scss/*.scss", ["sass-compile"]);
|
||||
gulp.watch("./res/ts/*.ts", ["typescript"]);
|
||||
});
|
|
@ -7,6 +7,11 @@
|
|||
"gulp": "3.9.1",
|
||||
"gulp-sass": "2.3.2",
|
||||
"gulp-clean-css": "2.0.13",
|
||||
"gulp-sourcemaps": "2.1.1"
|
||||
"gulp-sourcemaps": "2.1.1",
|
||||
"gulp-typescript": "3.1.2",
|
||||
"typescript": "2.1.1",
|
||||
"gulp-uglify": "2.0.0",
|
||||
"gulp-autoprefixer": "3.1.1",
|
||||
"uglify-js-harmony": "2.6.2"
|
||||
}
|
||||
}
|
|
@ -1,2 +1,2 @@
|
|||
body{background-color:#f6f5f3;color:#373736}a{color:#fff}#page-footer a,h1>a{color:#373736}#page-content,#page-navigation #page-navigation-links>li a,#page-navigation button{color:#f6f5f3}table thead th{border-bottom-color:#f6f5f3}#page-content{background-color:#373736}#page-content h3{border-bottom-color:#ccc}#page-navigation{background-color:#242423;color:#f6f5f3}#page-navigation #page-navigation-links>li.open>a,#page-navigation #page-navigation-links>li>a:hover{background-color:#373736}.dropdown-menu{background-color:#242423;-moz-box-shadow:0 5px 10px rgba(0,0,0,.15);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.15);box-shadow:0 5px 10px rgba(0,0,0,.15)}.dropdown-menu a:active,.dropdown-menu a:focus,.dropdown-menu a:hover{background-color:#373736}article{-moz-box-shadow:0 5px 10px rgba(0,0,0,.15) inset;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.15) inset;box-shadow:0 5px 10px rgba(0,0,0,.15) inset}article .build-details-comments a,article .build-group>h3>a,article a.more-link,article h1,article h3{color:#d6d5d3}ul.pagination>li.active>a{background:#f6f5f3;color:#242423!important}ul.pagination>li:active:not(.disabled)>a,ul.pagination>li:focus:not(.disabled)>a,ul.pagination>li:hover:not(.disabled)>a{background:#d6d5d3;color:#373736!important}#modal-search-overlay #modal-search{background-color:#242423}#modal-search-overlay #modal-search h3{color:#f6f5f3}#modal-search-overlay #modal-search>#modal-search-box>#modal-search-button,#modal-search-overlay #modal-search>#modal-search-box>#modal-search-input{background-color:#373736;color:#f6f5f3;border-color:#d6d5d3}
|
||||
body{background-color:#f6f5f3;color:#373736}a{color:#fff}#page-footer a,h1>a{color:#373736}#page-content,#page-navigation #page-navigation-links>li a,#page-navigation button{color:#f6f5f3}table thead th{border-bottom-color:#f6f5f3}#page-content{background-color:#373736}#page-content h3{border-bottom-color:#ccc}#page-navigation{background-color:#242423;color:#f6f5f3}#page-navigation #page-navigation-links>li.open>a,#page-navigation #page-navigation-links>li>a:hover{background-color:#373736}.dropdown-menu{background-color:#242423;box-shadow:0 5px 10px rgba(0,0,0,.15)}.dropdown-menu a:active,.dropdown-menu a:focus,.dropdown-menu a:hover{background-color:#373736}article{box-shadow:0 5px 10px rgba(0,0,0,.15) inset}article .build-details-comments a,article .build-group>h3>a,article a.more-link,article h1,article h3{color:#d6d5d3}ul.pagination>li.active>a{background:#f6f5f3;color:#242423!important}ul.pagination>li:active:not(.disabled)>a,ul.pagination>li:focus:not(.disabled)>a,ul.pagination>li:hover:not(.disabled)>a{background:#d6d5d3;color:#373736!important}#modal-search-overlay #modal-search{background-color:#242423}#modal-search-overlay #modal-search h3{color:#f6f5f3}#modal-search-overlay #modal-search>#modal-search-box>#modal-search-button,#modal-search-overlay #modal-search>#modal-search-box>#modal-search-input{background-color:#373736;color:#f6f5f3;border-color:#d6d5d3}
|
||||
/*# sourceMappingURL=dark.css.map */
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["dark.scss"],"names":[],"mappings":"AAAA,KAEG,iBAAkB,QAClB,MAAO,QAGV,EAEG,MAAO,KAIV,eADA,KAGG,MAAO,QAQV,cAWA,6CAAA,wBAOM,MAAO,QAvBb,eAEG,oBAAqB,QAGxB,cAEG,iBAAkB,QAFrB,iBAOM,oBAAqB,KAI3B,iBAEG,iBAAkB,QAClB,MAAO,QAHV,kDAAA,mDAsBY,iBAAkB,QAM9B,eAEG,iBAAkB,QAClB,gBAAiB,EAAE,IAAI,KAAK,gBAC5B,mBAAoB,EAAE,IAAI,KAAK,gBAC/B,WAAY,EAAE,IAAI,KAAK,gBAL1B,wBAAA,uBAAA,uBAWM,iBAAkB,QAIxB,QAEG,gBAAiB,EAAE,IAAI,KAAK,gBAAiB,MAC7C,mBAAoB,EAAE,IAAI,KAAK,gBAAiB,MAChD,WAAY,EAAE,IAAI,KAAK,gBAAiB,MAJ3C,kCAAA,0BAAA,oBAAA,WAAA,WAQM,MAAO,QAWb,0BAIM,WAAY,QACZ,MAAO,kBALb,yCAAA,wCAAA,wCAYM,WAAY,QACZ,MAAO,kBAIb,oCAEG,iBAAkB,QAFrB,uCAMM,MAAO,QANb,2EAAA,0EAYM,iBAAkB,QAClB,MAAO,QACP,aAAc","file":"dark.css","sourcesContent":["body\r\n{\r\n background-color: #f6f5f3;\r\n color: #373736;\r\n}\r\n\r\na\r\n{\r\n color: #fff;\r\n}\r\n\r\nh1 > a,\r\n#page-footer a\r\n{\r\n color: #373736;\r\n}\r\n\r\ntable thead th\r\n{\r\n border-bottom-color: #f6f5f3;\r\n}\r\n\r\n#page-content\r\n{\r\n background-color: #373736;\r\n color: #f6f5f3;\r\n\r\n h3\r\n {\r\n border-bottom-color: #ccc;\r\n }\r\n}\r\n\r\n#page-navigation\r\n{\r\n background-color: #242423;\r\n color: #f6f5f3;\r\n\r\n button\r\n {\r\n color: #f6f5f3;\r\n }\r\n\r\n #page-navigation-links\r\n {\r\n > li\r\n {\r\n a\r\n {\r\n color: #f6f5f3;\r\n }\r\n\r\n &.open > a,\r\n > a:hover\r\n {\r\n background-color: #373736;\r\n }\r\n }\r\n }\r\n}\r\n\r\n.dropdown-menu\r\n{\r\n background-color: #242423;\r\n -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n -webkit-box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n\r\n a:hover,\r\n a:focus,\r\n a:active\r\n {\r\n background-color: #373736;\r\n }\r\n}\r\n\r\narticle\r\n{\r\n -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.15) inset;\r\n -webkit-box-shadow: 0 5px 10px rgba(0,0,0,0.15) inset;\r\n box-shadow: 0 5px 10px rgba(0,0,0,0.15) inset;\r\n\r\n h1, h3\r\n {\r\n color: #d6d5d3;\r\n }\r\n\r\n .build-group > h3 > a,\r\n a.more-link,\r\n .build-details-comments a\r\n {\r\n color: #d6d5d3;\r\n }\r\n}\r\n\r\nul.pagination\r\n{\r\n > li.active > a\r\n {\r\n background: #f6f5f3;\r\n color: #242423 !important;\r\n }\r\n\r\n > li:hover:not(.disabled) > a,\r\n > li:focus:not(.disabled) > a,\r\n > li:active:not(.disabled) > a\r\n {\r\n background: #d6d5d3;\r\n color: #373736 !important;\r\n }\r\n}\r\n\r\n#modal-search-overlay #modal-search\r\n{\r\n background-color: #242423;\r\n\r\n h3\r\n {\r\n color: #f6f5f3;\r\n }\r\n\r\n > #modal-search-box > #modal-search-input,\r\n > #modal-search-box > #modal-search-button\r\n {\r\n background-color: #373736;\r\n color: #f6f5f3;\r\n border-color: #d6d5d3;\r\n }\r\n}\r\n"]}
|
||||
{"version":3,"sources":["dark.scss","dark.css"],"names":[],"mappings":"AAAA,KAEG,iBAAA,QACA,MAAA,QAGH,EAEG,MAAA,KCAH,eDGA,KAGG,MAAA,QAQH,cAWA,6CAAA,wBAOM,MAAA,QAvBN,eAEG,oBAAA,QAGH,cAEG,iBAAA,QAFH,iBAOM,oBAAA,KAIN,iBAEG,iBAAA,QACA,MAAA,QAHH,kDCLE,mDD2BU,iBAAA,QAMZ,eAEG,iBAAA,QAGA,WAAA,EAAA,IAAA,KAAA,gBC9BD,wBADA,uBD0BF,uBAWM,iBAAA,QAIN,QAIG,WAAA,EAAA,IAAA,KAAA,gBAAA,MCnCD,kCD+BF,0BChCE,oBDgCF,WAAA,WAQM,MAAA,QAWN,0BAIM,WAAA,QACA,MAAA,kBC9CN,yCADA,wCD0CA,wCAYM,WAAA,QACA,MAAA,kBAIN,oCAEG,iBAAA,QAFH,uCAMM,MAAA,QCvDJ,2EDiDF,0EAYM,iBAAA,QACA,MAAA,QACA,aAAA","file":"dark.css","sourcesContent":["body\r\n{\r\n background-color: #f6f5f3;\r\n color: #373736;\r\n}\r\n\r\na\r\n{\r\n color: #fff;\r\n}\r\n\r\nh1 > a,\r\n#page-footer a\r\n{\r\n color: #373736;\r\n}\r\n\r\ntable thead th\r\n{\r\n border-bottom-color: #f6f5f3;\r\n}\r\n\r\n#page-content\r\n{\r\n background-color: #373736;\r\n color: #f6f5f3;\r\n\r\n h3\r\n {\r\n border-bottom-color: #ccc;\r\n }\r\n}\r\n\r\n#page-navigation\r\n{\r\n background-color: #242423;\r\n color: #f6f5f3;\r\n\r\n button\r\n {\r\n color: #f6f5f3;\r\n }\r\n\r\n #page-navigation-links\r\n {\r\n > li\r\n {\r\n a\r\n {\r\n color: #f6f5f3;\r\n }\r\n\r\n &.open > a,\r\n > a:hover\r\n {\r\n background-color: #373736;\r\n }\r\n }\r\n }\r\n}\r\n\r\n.dropdown-menu\r\n{\r\n background-color: #242423;\r\n -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n -webkit-box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n\r\n a:hover,\r\n a:focus,\r\n a:active\r\n {\r\n background-color: #373736;\r\n }\r\n}\r\n\r\narticle\r\n{\r\n -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.15) inset;\r\n -webkit-box-shadow: 0 5px 10px rgba(0,0,0,0.15) inset;\r\n box-shadow: 0 5px 10px rgba(0,0,0,0.15) inset;\r\n\r\n h1, h3\r\n {\r\n color: #d6d5d3;\r\n }\r\n\r\n .build-group > h3 > a,\r\n a.more-link,\r\n .build-details-comments a\r\n {\r\n color: #d6d5d3;\r\n }\r\n}\r\n\r\nul.pagination\r\n{\r\n > li.active > a\r\n {\r\n background: #f6f5f3;\r\n color: #242423 !important;\r\n }\r\n\r\n > li:hover:not(.disabled) > a,\r\n > li:focus:not(.disabled) > a,\r\n > li:active:not(.disabled) > a\r\n {\r\n background: #d6d5d3;\r\n color: #373736 !important;\r\n }\r\n}\r\n\r\n#modal-search-overlay #modal-search\r\n{\r\n background-color: #242423;\r\n\r\n h3\r\n {\r\n color: #f6f5f3;\r\n }\r\n\r\n > #modal-search-box > #modal-search-input,\r\n > #modal-search-box > #modal-search-button\r\n {\r\n background-color: #373736;\r\n color: #f6f5f3;\r\n border-color: #d6d5d3;\r\n }\r\n}\r\n","body{background-color:#f6f5f3;color:#373736}a{color:#fff}#page-footer a,h1>a{color:#373736}#page-content,#page-navigation #page-navigation-links>li a,#page-navigation button{color:#f6f5f3}table thead th{border-bottom-color:#f6f5f3}#page-content{background-color:#373736}#page-content h3{border-bottom-color:#ccc}#page-navigation{background-color:#242423;color:#f6f5f3}#page-navigation #page-navigation-links>li.open>a,#page-navigation #page-navigation-links>li>a:hover{background-color:#373736}.dropdown-menu{background-color:#242423;box-shadow:0 5px 10px rgba(0,0,0,.15)}.dropdown-menu a:active,.dropdown-menu a:focus,.dropdown-menu a:hover{background-color:#373736}article{box-shadow:0 5px 10px rgba(0,0,0,.15) inset}article .build-details-comments a,article .build-group>h3>a,article a.more-link,article h1,article h3{color:#d6d5d3}ul.pagination>li.active>a{background:#f6f5f3;color:#242423!important}ul.pagination>li:active:not(.disabled)>a,ul.pagination>li:focus:not(.disabled)>a,ul.pagination>li:hover:not(.disabled)>a{background:#d6d5d3;color:#373736!important}#modal-search-overlay #modal-search{background-color:#242423}#modal-search-overlay #modal-search h3{color:#f6f5f3}#modal-search-overlay #modal-search>#modal-search-box>#modal-search-button,#modal-search-overlay #modal-search>#modal-search-box>#modal-search-input{background-color:#373736;color:#f6f5f3;border-color:#d6d5d3}\n/*# sourceMappingURL=dark.css.map */\n"]}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,2 +1,2 @@
|
|||
body{background-color:#373736;color:#f6f5f3}a{color:#000}#page-footer a,h1>a{color:#f6f5f3}#page-content,#page-navigation #page-navigation-links>li a,#page-navigation button{color:#373736}table thead th{border-bottom-color:#373736}#page-content{background-color:#f6f5f3}#page-content h3{border-bottom-color:#ccc}#page-navigation{background-color:#e6e5e3;color:#373736}#page-navigation #page-navigation-links>li.open>a,#page-navigation #page-navigation-links>li>a:hover{background-color:#f6f5f3}.dropdown-menu{background-color:#e6e5e3;-moz-box-shadow:0 5px 10px rgba(0,0,0,.15);-webkit-box-shadow:0 5px 10px rgba(0,0,0,.15);box-shadow:0 5px 10px rgba(0,0,0,.15)}.dropdown-menu a:active,.dropdown-menu a:focus,.dropdown-menu a:hover{background-color:#f6f5f3}article{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}article .build-details-comments a,article .build-group>h3>a,article a.more-link,article h1,article h3{color:#242423}ul.pagination>li.active>a{background:#373736;color:#e6e5e3!important}ul.pagination>li:active:not(.disabled)>a,ul.pagination>li:focus:not(.disabled)>a,ul.pagination>li:hover:not(.disabled)>a{background:#242423;color:#f6f5f3!important}#modal-search-overlay #modal-search{background-color:#f6f5f3}#modal-search-overlay #modal-search h3{color:#373736}#modal-search-overlay #modal-search>#modal-search-box>#modal-search-button,#modal-search-overlay #modal-search>#modal-search-box>#modal-search-input{background-color:#fff;color:#373736;border-color:#242423}
|
||||
body{background-color:#373736;color:#f6f5f3}a{color:#000}#page-footer a,h1>a{color:#f6f5f3}#page-content,#page-navigation #page-navigation-links>li a,#page-navigation button{color:#373736}table thead th{border-bottom-color:#373736}#page-content{background-color:#f6f5f3}#page-content h3{border-bottom-color:#ccc}#page-navigation{background-color:#e6e5e3;color:#373736}#page-navigation #page-navigation-links>li.open>a,#page-navigation #page-navigation-links>li>a:hover{background-color:#f6f5f3}.dropdown-menu{background-color:#e6e5e3;box-shadow:0 5px 10px rgba(0,0,0,.15)}.dropdown-menu a:active,.dropdown-menu a:focus,.dropdown-menu a:hover{background-color:#f6f5f3}article{box-shadow:none}article .build-details-comments a,article .build-group>h3>a,article a.more-link,article h1,article h3{color:#242423}ul.pagination>li.active>a{background:#373736;color:#e6e5e3!important}ul.pagination>li:active:not(.disabled)>a,ul.pagination>li:focus:not(.disabled)>a,ul.pagination>li:hover:not(.disabled)>a{background:#242423;color:#f6f5f3!important}#modal-search-overlay #modal-search{background-color:#f6f5f3}#modal-search-overlay #modal-search h3{color:#373736}#modal-search-overlay #modal-search>#modal-search-box>#modal-search-button,#modal-search-overlay #modal-search>#modal-search-box>#modal-search-input{background-color:#fff;color:#373736;border-color:#242423}
|
||||
/*# sourceMappingURL=light.css.map */
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["light.scss"],"names":[],"mappings":"AAAA,KAEG,iBAAkB,QAClB,MAAO,QAGV,EAEG,MAAO,KAIV,eADA,KAGG,MAAO,QAQV,cAWA,6CAAA,wBAOM,MAAO,QAvBb,eAEG,oBAAqB,QAGxB,cAEG,iBAAkB,QAFrB,iBAOM,oBAAqB,KAI3B,iBAEG,iBAAkB,QAClB,MAAO,QAHV,kDAAA,mDAsBY,iBAAkB,QAM9B,eAEG,iBAAkB,QAClB,gBAAiB,EAAE,IAAI,KAAK,gBAC5B,mBAAoB,EAAE,IAAI,KAAK,gBAC/B,WAAY,EAAE,IAAI,KAAK,gBAL1B,wBAAA,uBAAA,uBAWM,iBAAkB,QAIxB,QAEG,gBAAiB,KACjB,mBAAoB,KACpB,WAAY,KAJf,kCAAA,0BAAA,oBAAA,WAAA,WAQM,MAAO,QAWb,0BAIM,WAAY,QACZ,MAAO,kBALb,yCAAA,wCAAA,wCAYM,WAAY,QACZ,MAAO,kBAIb,oCAEG,iBAAkB,QAFrB,uCAMM,MAAO,QANb,2EAAA,0EAYM,iBAAkB,KAClB,MAAO,QACP,aAAc","file":"light.css","sourcesContent":["body\r\n{\r\n background-color: #373736;\r\n color: #f6f5f3;\r\n}\r\n\r\na\r\n{\r\n color: #000;\r\n}\r\n\r\nh1 > a,\r\n#page-footer a\r\n{\r\n color: #f6f5f3;\r\n}\r\n\r\ntable thead th\r\n{\r\n border-bottom-color: #373736;\r\n}\r\n\r\n#page-content\r\n{\r\n background-color: #f6f5f3;\r\n color: #373736;\r\n\r\n h3\r\n {\r\n border-bottom-color: #ccc;\r\n }\r\n}\r\n\r\n#page-navigation\r\n{\r\n background-color: #e6e5e3;\r\n color: #373736;\r\n\r\n button\r\n {\r\n color: #373736;\r\n }\r\n\r\n #page-navigation-links\r\n {\r\n > li\r\n {\r\n a\r\n {\r\n color: #373736;\r\n }\r\n\r\n &.open > a,\r\n > a:hover\r\n {\r\n background-color: #f6f5f3;\r\n }\r\n }\r\n }\r\n}\r\n\r\n.dropdown-menu\r\n{\r\n background-color: #e6e5e3;\r\n -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n -webkit-box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n\r\n a:hover,\r\n a:focus,\r\n a:active\r\n {\r\n background-color: #f6f5f3;\r\n }\r\n}\r\n\r\narticle\r\n{\r\n -moz-box-shadow: none;\r\n -webkit-box-shadow: none;\r\n box-shadow: none;\r\n\r\n h1, h3\r\n {\r\n color: #242423;\r\n }\r\n\r\n .build-group > h3 > a,\r\n a.more-link,\r\n .build-details-comments a\r\n {\r\n color: #242423;\r\n }\r\n}\r\n\r\nul.pagination\r\n{\r\n > li.active > a\r\n {\r\n background: #373736;\r\n color: #e6e5e3 !important;\r\n }\r\n\r\n > li:hover:not(.disabled) > a,\r\n > li:focus:not(.disabled) > a,\r\n > li:active:not(.disabled) > a\r\n {\r\n background: #242423;\r\n color: #f6f5f3 !important;\r\n }\r\n}\r\n\r\n#modal-search-overlay #modal-search\r\n{\r\n background-color: #f6f5f3;\r\n\r\n h3\r\n {\r\n color: #373736;\r\n }\r\n\r\n > #modal-search-box > #modal-search-input,\r\n > #modal-search-box > #modal-search-button\r\n {\r\n background-color: #fff;\r\n color: #373736;\r\n border-color: #242423;\r\n }\r\n}\r\n"]}
|
||||
{"version":3,"sources":["light.scss","light.css"],"names":[],"mappings":"AAAA,KAEG,iBAAA,QACA,MAAA,QAGH,EAEG,MAAA,KCAH,eDGA,KAGG,MAAA,QAQH,cAWA,6CAAA,wBAOM,MAAA,QAvBN,eAEG,oBAAA,QAGH,cAEG,iBAAA,QAFH,iBAOM,oBAAA,KAIN,iBAEG,iBAAA,QACA,MAAA,QAHH,kDCLE,mDD2BU,iBAAA,QAMZ,eAEG,iBAAA,QAGA,WAAA,EAAA,IAAA,KAAA,gBC9BD,wBADA,uBD0BF,uBAWM,iBAAA,QAIN,QAIG,WAAA,KCnCD,kCD+BF,0BChCE,oBDgCF,WAAA,WAQM,MAAA,QAWN,0BAIM,WAAA,QACA,MAAA,kBC9CN,yCADA,wCD0CA,wCAYM,WAAA,QACA,MAAA,kBAIN,oCAEG,iBAAA,QAFH,uCAMM,MAAA,QCvDJ,2EDiDF,0EAYM,iBAAA,KACA,MAAA,QACA,aAAA","file":"light.css","sourcesContent":["body\r\n{\r\n background-color: #373736;\r\n color: #f6f5f3;\r\n}\r\n\r\na\r\n{\r\n color: #000;\r\n}\r\n\r\nh1 > a,\r\n#page-footer a\r\n{\r\n color: #f6f5f3;\r\n}\r\n\r\ntable thead th\r\n{\r\n border-bottom-color: #373736;\r\n}\r\n\r\n#page-content\r\n{\r\n background-color: #f6f5f3;\r\n color: #373736;\r\n\r\n h3\r\n {\r\n border-bottom-color: #ccc;\r\n }\r\n}\r\n\r\n#page-navigation\r\n{\r\n background-color: #e6e5e3;\r\n color: #373736;\r\n\r\n button\r\n {\r\n color: #373736;\r\n }\r\n\r\n #page-navigation-links\r\n {\r\n > li\r\n {\r\n a\r\n {\r\n color: #373736;\r\n }\r\n\r\n &.open > a,\r\n > a:hover\r\n {\r\n background-color: #f6f5f3;\r\n }\r\n }\r\n }\r\n}\r\n\r\n.dropdown-menu\r\n{\r\n background-color: #e6e5e3;\r\n -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n -webkit-box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n box-shadow: 0 5px 10px rgba(0,0,0,0.15);\r\n\r\n a:hover,\r\n a:focus,\r\n a:active\r\n {\r\n background-color: #f6f5f3;\r\n }\r\n}\r\n\r\narticle\r\n{\r\n -moz-box-shadow: none;\r\n -webkit-box-shadow: none;\r\n box-shadow: none;\r\n\r\n h1, h3\r\n {\r\n color: #242423;\r\n }\r\n\r\n .build-group > h3 > a,\r\n a.more-link,\r\n .build-details-comments a\r\n {\r\n color: #242423;\r\n }\r\n}\r\n\r\nul.pagination\r\n{\r\n > li.active > a\r\n {\r\n background: #373736;\r\n color: #e6e5e3 !important;\r\n }\r\n\r\n > li:hover:not(.disabled) > a,\r\n > li:focus:not(.disabled) > a,\r\n > li:active:not(.disabled) > a\r\n {\r\n background: #242423;\r\n color: #f6f5f3 !important;\r\n }\r\n}\r\n\r\n#modal-search-overlay #modal-search\r\n{\r\n background-color: #f6f5f3;\r\n\r\n h3\r\n {\r\n color: #373736;\r\n }\r\n\r\n > #modal-search-box > #modal-search-input,\r\n > #modal-search-box > #modal-search-button\r\n {\r\n background-color: #fff;\r\n color: #373736;\r\n border-color: #242423;\r\n }\r\n}\r\n","body{background-color:#373736;color:#f6f5f3}a{color:#000}#page-footer a,h1>a{color:#f6f5f3}#page-content,#page-navigation #page-navigation-links>li a,#page-navigation button{color:#373736}table thead th{border-bottom-color:#373736}#page-content{background-color:#f6f5f3}#page-content h3{border-bottom-color:#ccc}#page-navigation{background-color:#e6e5e3;color:#373736}#page-navigation #page-navigation-links>li.open>a,#page-navigation #page-navigation-links>li>a:hover{background-color:#f6f5f3}.dropdown-menu{background-color:#e6e5e3;box-shadow:0 5px 10px rgba(0,0,0,.15)}.dropdown-menu a:active,.dropdown-menu a:focus,.dropdown-menu a:hover{background-color:#f6f5f3}article{box-shadow:none}article .build-details-comments a,article .build-group>h3>a,article a.more-link,article h1,article h3{color:#242423}ul.pagination>li.active>a{background:#373736;color:#e6e5e3!important}ul.pagination>li:active:not(.disabled)>a,ul.pagination>li:focus:not(.disabled)>a,ul.pagination>li:hover:not(.disabled)>a{background:#242423;color:#f6f5f3!important}#modal-search-overlay #modal-search{background-color:#f6f5f3}#modal-search-overlay #modal-search h3{color:#373736}#modal-search-overlay #modal-search>#modal-search-box>#modal-search-button,#modal-search-overlay #modal-search>#modal-search-box>#modal-search-input{background-color:#fff;color:#373736;border-color:#242423}\n/*# sourceMappingURL=light.css.map */\n"]}
|
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["rtl.scss"],"names":[],"mappings":"AAAA,2CAEG,WAAY,KAQf,gCAVA,gDAMM,WAAY,MAIlB,qDAAA,wDAMM,MAAO,MASb,kBAEG,WAAY,KAGf,6CAEG,WAAY,MAGf,6DAKM,WAAY,KALlB,8DAUM,WAAY,MAIlB,yBAEG,8DAAA,6DAIM,WAAY","file":"rtl.css","sourcesContent":["nav#page-navigation #page-navigation-links\r\n{\r\n text-align: left;\r\n\r\n > li > a\r\n {\r\n text-align: right;\r\n }\r\n}\r\n\r\n.dropdown-parent .dropdown-menu\r\n{\r\n text-align: right;\r\n\r\n .dropdown-menu-block\r\n {\r\n float: right;\r\n\r\n li\r\n {\r\n float: right;\r\n }\r\n }\r\n}\r\n\r\n.form-group label\r\n{\r\n text-align: left;\r\n}\r\n\r\narticle .build-group-listing .build-group h3\r\n{\r\n text-align: right;\r\n}\r\n\r\nfooter#page-footer .footer-flex .footer-flex-item\r\n{\r\n\r\n &:last-child\r\n {\r\n text-align: left;\r\n }\r\n\r\n &:first-child\r\n {\r\n text-align: right;\r\n }\r\n}\r\n\r\n@media (max-width: 640px)\r\n{\r\n footer#page-footer .footer-flex .footer-flex-item\r\n {\r\n &:first-child\r\n {\r\n text-align: center;\r\n }\r\n\r\n &:last-child\r\n {\r\n text-align: center;\r\n }\r\n }\r\n}\r\n"]}
|
||||
{"version":3,"sources":["rtl.scss"],"names":[],"mappings":"AAAA,2CAEG,WAAA,KAQH,gCAVA,gDAMM,WAAA,MAIN,qDAAA,wDAMM,MAAA,MASN,kBAEG,WAAA,KAGH,6CAEG,WAAA,MAGH,6DAKM,WAAA,KALN,8DAUM,WAAA,MAIN,yBAEG,8DAAA,6DAIM,WAAA","file":"rtl.css","sourcesContent":["nav#page-navigation #page-navigation-links\r\n{\r\n text-align: left;\r\n\r\n > li > a\r\n {\r\n text-align: right;\r\n }\r\n}\r\n\r\n.dropdown-parent .dropdown-menu\r\n{\r\n text-align: right;\r\n\r\n .dropdown-menu-block\r\n {\r\n float: right;\r\n\r\n li\r\n {\r\n float: right;\r\n }\r\n }\r\n}\r\n\r\n.form-group label\r\n{\r\n text-align: left;\r\n}\r\n\r\narticle .build-group-listing .build-group h3\r\n{\r\n text-align: right;\r\n}\r\n\r\nfooter#page-footer .footer-flex .footer-flex-item\r\n{\r\n\r\n &:last-child\r\n {\r\n text-align: left;\r\n }\r\n\r\n &:first-child\r\n {\r\n text-align: right;\r\n }\r\n}\r\n\r\n@media (max-width: 640px)\r\n{\r\n footer#page-footer .footer-flex .footer-flex-item\r\n {\r\n &:first-child\r\n {\r\n text-align: center;\r\n }\r\n\r\n &:last-child\r\n {\r\n text-align: center;\r\n }\r\n }\r\n}\r\n"]}
|
|
@ -1,124 +1,2 @@
|
|||
var BuildFeed;
|
||||
(function (BuildFeed) {
|
||||
let ajax;
|
||||
let timeout;
|
||||
function MobileMenuToggle(ev) {
|
||||
ev.preventDefault();
|
||||
const button = this;
|
||||
button.nextElementSibling.classList.toggle("open");
|
||||
}
|
||||
BuildFeed.MobileMenuToggle = MobileMenuToggle;
|
||||
function DropdownClick(ev) {
|
||||
ev.preventDefault();
|
||||
const link = this;
|
||||
link.parentElement.classList.toggle("open");
|
||||
}
|
||||
BuildFeed.DropdownClick = DropdownClick;
|
||||
function SwitchTheme(ev) {
|
||||
ev.preventDefault();
|
||||
const link = this;
|
||||
document.cookie = `bf_theme=${link.dataset["theme"]}; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/`;
|
||||
location.reload(true);
|
||||
}
|
||||
BuildFeed.SwitchTheme = SwitchTheme;
|
||||
function SwitchLanguage(ev) {
|
||||
ev.preventDefault();
|
||||
const link = this;
|
||||
document.cookie = `bf_lang=${link.dataset["lang"]}; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/`;
|
||||
location.reload(true);
|
||||
}
|
||||
BuildFeed.SwitchLanguage = SwitchLanguage;
|
||||
function OpenSearch(ev) {
|
||||
ev.preventDefault();
|
||||
const modal = document.getElementById("modal-search-overlay");
|
||||
modal.classList.add("open");
|
||||
}
|
||||
BuildFeed.OpenSearch = OpenSearch;
|
||||
function CloseSearch(ev) {
|
||||
ev.preventDefault();
|
||||
const modal = document.getElementById("modal-search-overlay");
|
||||
modal.classList.remove("open");
|
||||
}
|
||||
BuildFeed.CloseSearch = CloseSearch;
|
||||
function StopClick(ev) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
}
|
||||
BuildFeed.StopClick = StopClick;
|
||||
function InitiateSearch(ev) {
|
||||
const resultPane = document.getElementById("modal-search-result");
|
||||
resultPane.innerHTML = "";
|
||||
if (typeof (timeout) !== "undefined") {
|
||||
clearTimeout(timeout);
|
||||
}
|
||||
if (typeof (ajax) !== "undefined" && ajax.readyState !== XMLHttpRequest.DONE) {
|
||||
ajax.abort();
|
||||
}
|
||||
timeout = setInterval(SendSearch, 200);
|
||||
}
|
||||
BuildFeed.InitiateSearch = InitiateSearch;
|
||||
function SendSearch() {
|
||||
if (typeof (timeout) !== "undefined") {
|
||||
clearTimeout(timeout);
|
||||
}
|
||||
const modalInput = document.getElementById("modal-search-input");
|
||||
ajax = new XMLHttpRequest();
|
||||
ajax.onreadystatechange = CompleteSearch;
|
||||
ajax.open("GET", `/api/GetSearchResult/${modalInput.value}/`, true);
|
||||
ajax.setRequestHeader("accept", "application/json");
|
||||
ajax.send(null);
|
||||
}
|
||||
BuildFeed.SendSearch = SendSearch;
|
||||
function CompleteSearch(ev) {
|
||||
if (ajax.readyState !== XMLHttpRequest.DONE || ajax.status !== 200) {
|
||||
return;
|
||||
}
|
||||
const resultPane = document.getElementById("modal-search-result");
|
||||
const templateContent = document.getElementById("result-template");
|
||||
const template = jsrender.templates(templateContent.innerHTML);
|
||||
const content = template.render(JSON.parse(ajax.responseText));
|
||||
resultPane.innerHTML = content;
|
||||
const resultLinks = resultPane.getElementsByTagName("a");
|
||||
for (let i = 0; i < resultLinks.length; i++) {
|
||||
resultLinks[i].addEventListener("click", (mev) => {
|
||||
mev.preventDefault();
|
||||
const modalInput = document.getElementById("modal-search-input");
|
||||
ga("send", "pageview", `/api/GetSearchResult/${modalInput.value}/`);
|
||||
location.assign(mev.currentTarget.href);
|
||||
});
|
||||
}
|
||||
}
|
||||
BuildFeed.CompleteSearch = CompleteSearch;
|
||||
function BuildFeedSetup(ev) {
|
||||
const ddParents = document.getElementsByClassName("dropdown-parent");
|
||||
for (let i = 0; i < ddParents.length; i++) {
|
||||
for (let j = 0; j < ddParents[i].childNodes.length; j++) {
|
||||
const el = ddParents[i].childNodes[j];
|
||||
if (el.nodeName === "A") {
|
||||
el.addEventListener("click", DropdownClick);
|
||||
}
|
||||
}
|
||||
}
|
||||
const ddThemes = document.getElementById("settings-theme-menu").getElementsByTagName("a");
|
||||
for (let i = 0; i < ddThemes.length; i++) {
|
||||
ddThemes[i].addEventListener("click", SwitchTheme);
|
||||
}
|
||||
const ddLangs = document.getElementById("settings-lang-menu").getElementsByTagName("a");
|
||||
for (let i = 0; i < ddLangs.length; i++) {
|
||||
ddLangs[i].addEventListener("click", SwitchLanguage);
|
||||
}
|
||||
const btnNav = document.getElementById("page-navigation-toggle");
|
||||
btnNav.addEventListener("click", MobileMenuToggle);
|
||||
const btnSearch = document.getElementById("page-navigation-search");
|
||||
btnSearch.addEventListener("click", OpenSearch);
|
||||
const modalOverlay = document.getElementById("modal-search-overlay");
|
||||
modalOverlay.addEventListener("click", CloseSearch);
|
||||
const modalDialog = document.getElementById("modal-search");
|
||||
modalDialog.addEventListener("click", StopClick);
|
||||
const modalInput = document.getElementById("modal-search-input");
|
||||
modalInput.addEventListener("keyup", InitiateSearch);
|
||||
}
|
||||
BuildFeed.BuildFeedSetup = BuildFeedSetup;
|
||||
})(BuildFeed || (BuildFeed = {}));
|
||||
window.addEventListener("load", BuildFeed.BuildFeedSetup);
|
||||
//# sourceMappingURL=bfs.js.map
|
||||
var BuildFeed;!function(e){function t(e){e.preventDefault();var t=this;t.nextElementSibling.classList.toggle("open")}function n(e){e.preventDefault();var t=this;t.parentElement.classList.toggle("open")}function a(e){e.preventDefault();var t=this;document.cookie="bf_theme="+t.dataset.theme+"; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/",location.reload(!0)}function d(e){e.preventDefault();var t=this;document.cookie="bf_lang="+t.dataset.lang+"; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/",location.reload(!0)}function r(e){e.preventDefault();var t=document.getElementById("modal-search-overlay");t.classList.add("open")}function l(e){e.preventDefault();var t=document.getElementById("modal-search-overlay");t.classList.remove("open")}function o(e){e.preventDefault(),e.stopPropagation()}function i(e){var t=document.getElementById("modal-search-result");t.innerHTML="","undefined"!=typeof g&&clearTimeout(g),"undefined"!=typeof m&&m.readyState!==XMLHttpRequest.DONE&&m.abort(),g=setInterval(c,200)}function c(){"undefined"!=typeof g&&clearTimeout(g);var e=document.getElementById("modal-search-input");m=new XMLHttpRequest,m.onreadystatechange=s,m.open("GET","/api/GetSearchResult/"+e.value+"/",!0),m.setRequestHeader("accept","application/json"),m.send(null)}function s(e){if(m.readyState===XMLHttpRequest.DONE&&200===m.status){var t=document.getElementById("modal-search-result"),n=document.getElementById("result-template"),a=jsrender.templates(n.innerHTML),d=a.render(JSON.parse(m.responseText));t.innerHTML=d;for(var r=t.getElementsByTagName("a"),l=0;l<r.length;l++)r[l].addEventListener("click",function(e){e.preventDefault();var t=document.getElementById("modal-search-input");ga("send","pageview","/api/GetSearchResult/"+t.value+"/"),location.assign(e.currentTarget.href)})}}function u(e){for(var c=document.getElementsByClassName("dropdown-parent"),s=0;s<c.length;s++)for(var u=0;u<c[s].childNodes.length;u++){var m=c[s].childNodes[u];"A"===m.nodeName&&m.addEventListener("click",n)}for(var g=document.getElementById("settings-theme-menu").getElementsByTagName("a"),s=0;s<g.length;s++)g[s].addEventListener("click",a);for(var v=document.getElementById("settings-lang-menu").getElementsByTagName("a"),s=0;s<v.length;s++)v[s].addEventListener("click",d);var p=document.getElementById("page-navigation-toggle");p.addEventListener("click",t);var h=document.getElementById("page-navigation-search");h.addEventListener("click",r);var f=document.getElementById("modal-search-overlay");f.addEventListener("click",l);var E=document.getElementById("modal-search");E.addEventListener("click",o);var y=document.getElementById("modal-search-input");y.addEventListener("keyup",i)}var m,g;e.MobileMenuToggle=t,e.DropdownClick=n,e.SwitchTheme=a,e.SwitchLanguage=d,e.OpenSearch=r,e.CloseSearch=l,e.StopClick=o,e.InitiateSearch=i,e.SendSearch=c,e.CompleteSearch=s,e.BuildFeedSetup=u}(BuildFeed||(BuildFeed={})),window.addEventListener("load",BuildFeed.BuildFeedSetup);
|
||||
//# sourceMappingURL=bfs.js.map
|
||||
|
|
File diff suppressed because one or more lines are too long
1
BuildFeed/res/ts/bfs.min.js
vendored
1
BuildFeed/res/ts/bfs.min.js
vendored
|
@ -1 +0,0 @@
|
|||
var BuildFeed;(function(n){function r(n){n.preventDefault();const t=this;t.nextElementSibling.classList.toggle("open")}function u(n){n.preventDefault();const t=this;t.parentElement.classList.toggle("open")}function f(n){n.preventDefault();const t=this;document.cookie=`bf_theme=${t.dataset.theme}; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/`;location.reload(!0)}function e(n){n.preventDefault();const t=this;document.cookie=`bf_lang=${t.dataset.lang}; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/`;location.reload(!0)}function o(n){n.preventDefault();const t=document.getElementById("modal-search-overlay");t.classList.add("open")}function s(n){n.preventDefault();const t=document.getElementById("modal-search-overlay");t.classList.remove("open")}function h(n){n.preventDefault();n.stopPropagation()}function c(){const n=document.getElementById("modal-search-result");n.innerHTML="";typeof i!="undefined"&&clearTimeout(i);typeof t!="undefined"&&t.readyState!==XMLHttpRequest.DONE&&t.abort();i=setInterval(l,200)}function l(){typeof i!="undefined"&&clearTimeout(i);const n=document.getElementById("modal-search-input");t=new XMLHttpRequest;t.onreadystatechange=a;t.open("GET",`/api/GetSearchResult/${n.value}/`,!0);t.setRequestHeader("accept","application/json");t.send(null)}function a(){if(t.readyState===XMLHttpRequest.DONE&&t.status===200){const n=document.getElementById("modal-search-result"),r=document.getElementById("result-template"),u=jsrender.templates(r.innerHTML),f=u.render(JSON.parse(t.responseText));n.innerHTML=f;const i=n.getElementsByTagName("a");for(let n=0;n<i.length;n++)i[n].addEventListener("click",n=>{n.preventDefault();const t=document.getElementById("modal-search-input");ga("send","pageview",`/api/GetSearchResult/${t.value}/`);location.assign(n.currentTarget.href)})}}function v(){const n=document.getElementsByClassName("dropdown-parent");for(let t=0;t<n.length;t++)for(let i=0;i<n[t].childNodes.length;i++){const r=n[t].childNodes[i];r.nodeName==="A"&&r.addEventListener("click",u)}const t=document.getElementById("settings-theme-menu").getElementsByTagName("a");for(let n=0;n<t.length;n++)t[n].addEventListener("click",f);const i=document.getElementById("settings-lang-menu").getElementsByTagName("a");for(let n=0;n<i.length;n++)i[n].addEventListener("click",e);const l=document.getElementById("page-navigation-toggle");l.addEventListener("click",r);const a=document.getElementById("page-navigation-search");a.addEventListener("click",o);const v=document.getElementById("modal-search-overlay");v.addEventListener("click",s);const y=document.getElementById("modal-search");y.addEventListener("click",h);const p=document.getElementById("modal-search-input");p.addEventListener("keyup",c)}let t,i;n.MobileMenuToggle=r;n.DropdownClick=u;n.SwitchTheme=f;n.SwitchLanguage=e;n.OpenSearch=o;n.CloseSearch=s;n.StopClick=h;n.InitiateSearch=c;n.SendSearch=l;n.CompleteSearch=a;n.BuildFeedSetup=v})(BuildFeed||(BuildFeed={}));window.addEventListener("load",BuildFeed.BuildFeedSetup);
|
Loading…
Reference in New Issue
Block a user