Add CC licensing info, favicon, general cleanup

This commit is contained in:
2022-04-05 11:56:06 -05:00
parent 3142d0a4be
commit e461635f3a
22 changed files with 31 additions and 102 deletions

View File

@@ -1,4 +1,4 @@
import { env } from "@extollo/lib";
import { env } from '@extollo/lib'
export default {
connections: {

View File

@@ -1,4 +1,4 @@
import {OAuth2Client, OAuth2Scope, env, /*uuid4*/} from '@extollo/lib'
import {OAuth2Client, OAuth2Scope, env} from '@extollo/lib'
export default {
secret: env('OAUTH2_SECRET'),
@@ -9,16 +9,5 @@ export default {
description: 'access basic information about your account',
},
} as {[key: string]: OAuth2Scope},
clients: {
// 'test-1': {
// id: 'test-1',
// display: 'Test 1',
// secret: env('TEST_CLIENT_SECRET', uuid4()),
// allowedFlows: ['code'],
// allowedScopeIds: ['user-info'],
// allowedRedirectUris: [
// 'http://localhost:1234/callback',
// ],
// },
} as {[key: string]: OAuth2Client},
clients: {} as {[key: string]: OAuth2Client},
}

View File

@@ -7,7 +7,7 @@ import {
RedisCache,
CacheQueue,
BusConnectorConfig, QueueConfig, SyncQueue
} from "@extollo/lib"
} from '@extollo/lib'
export default {
debug: env('DEBUG_MODE', false),

View File

@@ -1,4 +1,4 @@
import {Controller, view, Injectable, SecurityContext, Inject, Collection, Config, Routing} from '@extollo/lib'
import {Controller, view, Injectable, SecurityContext, Inject, Collection, Config, Routing, file, Application} from '@extollo/lib'
import {WorkItem} from '../../models/WorkItem.model'
import {FeedPost} from '../../models/FeedPost.model'
@@ -75,4 +75,11 @@ export class Home extends Controller {
return query.get().collect()
}
favicon() {
return file(
Application.getApplication()
.appPath('resources', 'assets', 'favicon', 'favicon.ico')
)
}
}

View File

@@ -36,12 +36,9 @@ Route
Route.any('/go/:short')
.calls<GoLinks>(GoLinks, go => go.launch)
Route.get('/favicon.ico')
.calls<Home>(Home, home => home.favicon)
})
.pre(SessionAuthMiddleware)
.pre(PageView)
// Route.group('', () => {
// Route.get('/dash')
// .pre(AuthRequiredMiddleware)
// .calls<Home>(Home, home => home.welcome)
// }).pre(SessionAuthMiddleware)

View File

@@ -1,15 +0,0 @@
import {Inject, Injectable, Logging, BaseJob} from '@extollo/lib'
@Injectable()
export default class LogMessage extends BaseJob {
@Inject()
protected readonly logging!: Logging
async execute(): Promise<void> {
this.logging.info('Executing LogMessage...')
await new Promise<void>(res => {
setTimeout(() => res(), 3000)
})
this.logging.success('The LogMessage job has executed!')
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1 @@
{"name":"Garrett Mills | Developer, Speaker, Designer","short_name":"Garrett Mills","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@@ -19,15 +19,24 @@ head
link(rel="alternate" href="/feed/atom.xml" title="Garrett Mills - Posts & Updates" type="application/atom+xml")
link(rel="alternate" href="/feed/rss.xml" title="Garrett Mills - Posts & Updates" type="application/rss+xml")
link(rel='apple-touch-icon' sizes='180x180' href=asset('favicon/apple-touch-icon.png'))
link(rel='manifest' href=asset('favicon/site.webmanifest'))
link(rel='icon' type='image/png' sizes='32x32' href=asset('favicon/favicon-32x32.png'))
link(rel='icon' type='image/png' sizes='16x16' href=asset('favicon/favicon-16x16.png'))
link(rel='shortcut icon' href=asset('favicon/favicon.ico'))
body
block content
footer
.ff-tag(style="margin-right: 80px")
a(href="https://www.mozilla.org/en-US/firefox/browsers/" target="_blank")
img(src="/assets/ffox.png" width="75" style="margin-top: -1px")
img(src=asset('ffox.png') width="75" style="margin-top: -1px")
.by-line garrettmills
.copy#tagline(title="my, aren't you curious...") copyright &copy; #{(new Date()).getFullYear()} garrett mills
.copyright
a(href='https://creativecommons.org/licenses/by-nc-sa/4.0/' target='_blank')
img(src=asset('cc-by-nc-sa-small.png') title='This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License')
if false
div.auth-container
div.profile

0
src/app/types/.gitkeep Normal file
View File

View File

@@ -1,14 +0,0 @@
export interface UserLogin {
/**
* @minLength 1
* @maxLength 100
*/
username: string,
/**
* @minLength 1
* @maxLength 100
*/
password: string,
}