Skip to content

Commit

Permalink
refactor: build (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekobato committed Nov 25, 2023
1 parent c6e63e5 commit 9805b70
Show file tree
Hide file tree
Showing 11 changed files with 2,626 additions and 2,236 deletions.
4 changes: 2 additions & 2 deletions components/Settings/ApplicationSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const onChangeHideCw = async (e: Event) => {
</div>
</div>

<SectionTitle title="グローバルショートカットキー" />
<!-- <SectionTitle title="グローバルショートカットキー" />
<div class="hazy-post indent-1">
<div class="content">
<span class="title">タイムライン表示/非表示切り替え</span>
Expand All @@ -143,7 +143,7 @@ const onChangeHideCw = async (e: Event) => {
@input="onChangeShortcut('toggleTimeline')"
/>
</div>
</div>
</div> -->
<SectionTitle title="Misskey" />
<div class="hazy-post indent-1">
<div class="content">
Expand Down
12 changes: 10 additions & 2 deletions components/Settings/TimelineSettings.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useStore } from "@/store";
import { useTimelineStore } from "@/store/timeline";
import { computed, ref } from "nuxt/dist/app/compat/capi";
import { computed, ref } from "vue";
import type { MisskeyChannel } from "~/types/misskey";
import type { ChannelName, Timeline } from "~/types/store";
import SectionTitle from "../Post/SectionTitle.vue";
Expand Down Expand Up @@ -129,7 +129,15 @@ const updateTimeline = async (timeline: Timeline) => {
/>
</div>
</div>
<div class="hazy-post account indent-1" v-if="false">
<div class="hazy-post account indent-2" v-if="false">
<div class="content">
<span class="label">検索</span>
</div>
<div class="attachments form-actions">
<input class="nn-text-field" type="search" />
</div>
</div>
<div class="hazy-post account indent-2" v-if="selectedChannel === 'misskey:channelTimeline'">
<div class="content">
<span class="label">検索</span>
</div>
Expand Down
11 changes: 6 additions & 5 deletions electron/windows/mainWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ export function createMainWindow() {
win.show();
});

win.webContents?.on("will-navigate", (e, url) => {
e.preventDefault();
console.log("will-navigate", url);
electron.shell.openExternal(url);
});
// win.webContents?.on("will-navigate", (e, url) => {
// if (url.startsWith("http://localhost")) return;
// e.preventDefault();
// console.log("will-navigate", url);
// electron.shell.openExternal(url);
// });

return win;
}
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
devtools: { enabled: false },
ssr: false,
modules: ["nuxt-electron", "@pinia/nuxt"],
electron: {
Expand Down
Loading

0 comments on commit 9805b70

Please sign in to comment.