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.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', () =>

View file

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

File diff suppressed because one or more lines are too long

View file

@ -10,7 +10,7 @@
</div>
<div class="_block main">
<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">
<h1>{{ page.title }}</h1>
</div>
@ -98,6 +98,8 @@ const otherPostsPagination = {
};
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() {
page = null;
os.api('pages/show', {