rerun CI
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import { base64ToString } from 'lib/base64'
|
import { base64ToString } from 'lib/base64'
|
||||||
import { CREATE_FILE_URL_PARAM, DEFAULT_FILE_NAME } from 'lib/constants'
|
import { CREATE_FILE_URL_PARAM, DEFAULT_FILE_NAME } from 'lib/constants'
|
||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
import { useSearchParams } from 'react-router-dom'
|
import { useLocation, useSearchParams } from 'react-router-dom'
|
||||||
import { useCommandsContext } from './useCommandsContext'
|
import { useCommandsContext } from './useCommandsContext'
|
||||||
import { useSettingsAuthContext } from './useSettingsAuthContext'
|
import { useSettingsAuthContext } from './useSettingsAuthContext'
|
||||||
import { isDesktop } from 'lib/isDesktop'
|
import { isDesktop } from 'lib/isDesktop'
|
||||||
@ -16,6 +16,7 @@ import { baseUnitsUnion } from 'lib/settings/settingsTypes'
|
|||||||
* URL parameters.
|
* URL parameters.
|
||||||
*/
|
*/
|
||||||
export function useCreateFileLinkQuery() {
|
export function useCreateFileLinkQuery() {
|
||||||
|
const location = useLocation()
|
||||||
const [searchParams] = useSearchParams()
|
const [searchParams] = useSearchParams()
|
||||||
const { commandBarSend } = useCommandsContext()
|
const { commandBarSend } = useCommandsContext()
|
||||||
const { settings } = useSettingsAuthContext()
|
const { settings } = useSettingsAuthContext()
|
||||||
@ -41,7 +42,7 @@ export function useCreateFileLinkQuery() {
|
|||||||
settings.context.modeling.defaultUnit.default) ??
|
settings.context.modeling.defaultUnit.default) ??
|
||||||
settings.context.modeling.defaultUnit.current,
|
settings.context.modeling.defaultUnit.current,
|
||||||
}
|
}
|
||||||
console.log('createFileParam', params)
|
console.log('createFileParam', { ...params, location })
|
||||||
|
|
||||||
// For initializing the command arguments, we actually want `method` to be undefined
|
// For initializing the command arguments, we actually want `method` to be undefined
|
||||||
// so that we don't skip it in the command palette.
|
// so that we don't skip it in the command palette.
|
||||||
|
|||||||
@ -10,7 +10,8 @@ import {
|
|||||||
shell,
|
shell,
|
||||||
nativeTheme,
|
nativeTheme,
|
||||||
} from 'electron'
|
} from 'electron'
|
||||||
import path from 'path'
|
import path, { join } from 'path'
|
||||||
|
import fs from 'fs'
|
||||||
import { Issuer } from 'openid-client'
|
import { Issuer } from 'openid-client'
|
||||||
import { Bonjour, Service } from 'bonjour-service'
|
import { Bonjour, Service } from 'bonjour-service'
|
||||||
// @ts-ignore: TS1343
|
// @ts-ignore: TS1343
|
||||||
@ -395,6 +396,10 @@ function registerStartupListeners() {
|
|||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
||||||
console.log('open-url', url)
|
console.log('open-url', url)
|
||||||
|
fs.writeFileSync(
|
||||||
|
'/Users/frankjohnson/open-url.txt',
|
||||||
|
`at ${new Date().toLocaleTimeString()} opened url: ${url}`
|
||||||
|
)
|
||||||
|
|
||||||
// If we have a mainWindow, lets open another window.
|
// If we have a mainWindow, lets open another window.
|
||||||
if (mainWindow) {
|
if (mainWindow) {
|
||||||
|
|||||||
Reference in New Issue
Block a user