Skip to content

Commit ad7b28a

Browse files
committed
remove debug logging
1 parent db079df commit ad7b28a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/AutoViewForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const AutoViewForm: React.FC<AutoViewFormProps & AutoViewFormSlots> = (props) =>
200200
</div>
201201
</div>
202202
</div>
203-
<div className="">
203+
<div>
204204
<MarkupModel
205205
value={model}
206206
tableClass="w-full border-separate border-spacing-y-1"

src/use/auth.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function toAuth(auth?:AuthenticateResponse) {
1313
function signIn(user:AuthenticateResponse) {
1414
if (user) {
1515
Sole.user = toAuth(user)!
16-
console.debug('signIn', user, Sole.user)
16+
// console.debug('signIn', user, Sole.user)
1717
Sole.events.publish('signIn', user)
1818
} else {
1919
signOut()
@@ -22,7 +22,7 @@ function signIn(user:AuthenticateResponse) {
2222

2323
/** Sign Out currently Authenticated User */
2424
function signOut() {
25-
console.debug('signOut', Sole.user)
25+
// console.debug('signOut', Sole.user)
2626
Sole.user = null
2727
Sole.events.publish('signOut', null)
2828
}
@@ -79,7 +79,7 @@ export function canAccess(op?:MetadataOperationType|null) {
7979
export function invalidAccessMessage(op:MetadataOperationType) {
8080
if (!op || !op.requiresAuth) return null
8181
const auth = Sole.user
82-
console.debug('invalidAccessMessage', auth, op?.request?.name)
82+
// console.debug('invalidAccessMessage', auth, op?.request?.name)
8383
if (!auth) {
8484
return `<b>${op.request.name}</b> requires Authentication`
8585
}

src/use/metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export function getMetadata(opt?:{assert?:boolean}):any { // use 'any' to avoid
330330
/** Explicitly set AppMetadata and save to localStorage */
331331
export function setMetadata(metadata:AppMetadata|null|undefined) {
332332
if (metadata && isValid(metadata)) {
333-
console.debug('setMetadata', metadata)
333+
// console.debug('setMetadata', metadata)
334334
metadata.date = toDateTime(new Date())
335335
Sole.metadata = metadata
336336
if (typeof localStorage != 'undefined') localStorage.setItem(metadataPath, JSON.stringify(metadata))
@@ -364,7 +364,7 @@ export function tryLoad() {
364364
}
365365

366366
export async function downloadMetadata(metadataPath:string, resolve?:() => Promise<Response>) {
367-
console.debug('downloadMetadata', metadataPath, !!resolve)
367+
// console.debug('downloadMetadata', metadataPath, !!resolve)
368368
let r = resolve
369369
? await resolve()
370370
: await fetch(metadataPath)

0 commit comments

Comments
 (0)