optimizations

This commit is contained in:
ThatOneCalculator 2022-11-21 19:40:45 -08:00
parent 2592dda70c
commit cb9a1d5dbd
4 changed files with 289 additions and 4 deletions

View File

@ -20,7 +20,7 @@ gulp.task('copy:backend:custom', () =>
); );
gulp.task('copy:client:fonts', () => gulp.task('copy:client:fonts', () =>
gulp.src('./packages/client/node_modules/three/examples/fonts/**/*').pipe(gulp.dest('./built/_client_dist_/fonts/')) gulp.src('./packages/client/src/icons.css.min').pipe(gulp.dest('./built/_client_dist_/fonts/'))
); );
gulp.task('copy:client:phosphor', () => gulp.task('copy:client:phosphor', () =>

View File

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "12.119.0-calc.16.4", "version": "12.119.0-calc.16.5",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",
@ -51,7 +51,6 @@
"gulp-terser": "2.1.0", "gulp-terser": "2.1.0",
"js-yaml": "4.1.0", "js-yaml": "4.1.0",
"long": "^5.2.1", "long": "^5.2.1",
"phosphor-icons": "^1.4.2",
"seedrandom": "^3.0.5" "seedrandom": "^3.0.5"
}, },
"devDependencies": { "devDependencies": {

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@
</div> </div>
<div class="_block main"> <div class="_block main">
<div class="banner"> <div class="banner">
<div class="banner-image" :style="`background-image: ${page.eyeCatchingImage.url !== null ? `url(${page.eyeCatchingImage.url})` : `linear-gradient(to bottom right, #31748f, #9ccfd8);` }`"> <div class="banner-image" :style="{ 'background-image': bgImg }">
<div class="header"> <div class="header">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
</div> </div>
@ -98,6 +98,8 @@ const otherPostsPagination = {
}; };
const path = $computed(() => props.username + '/' + props.pageName); const path = $computed(() => props.username + '/' + props.pageName);
const bgImg = page.eyeCatchingImage.url !== null ? page.eyeCatchingImage.url : 'linear-gradient(to bottom right, #31748f, #9ccfd8)';
function fetchPage() { function fetchPage() {
page = null; page = null;
os.api('pages/show', { os.api('pages/show', {