不知道各位前端人有没有因为添加页面需要去修改router.ts而烦恼过?
咱在这里隆重推荐一款vite插件,它可以使你从切换.vue和router.ts中解放出来,您只需要在.vue文件中编写路由即可
Template Router
<template path="/path" layout="Layout">
<!-- ... -->
</template>
小于 1 分钟
这里是岛风的港区,这里充满了自然的气息(破败且杂草丛生)。
不知道各位前端人有没有因为添加页面需要去修改router.ts而烦恼过?
咱在这里隆重推荐一款vite插件,它可以使你从切换.vue和router.ts中解放出来,您只需要在.vue文件中编写路由即可
<template path="/path" layout="Layout">
<!-- ... -->
</template>
git clone https://github.com/AbdBarho/stable-diffusion-webui-docker --depth=1
cd stable-diffusion-webui-docker
docker compose --profile download up --build
# where [ui] is one of: invoke | auto | auto-cpu | sygil | sygil-sl
$ui = 'auto'
docker compose --profile $ui up --build
Language Version: C# 8.0
通过System.Windows.Interop
using System.Windows.Interop;
// this is Window 可以写在构造方法里
this.SourceInitialized += Theme.ThemeManager.Window_SourceInitialized;
// see "https://stackoverflow.com/questions/13660976/get-the-active-color-of-windows-8-automatic-color-theme"
void Window_SourceInitialized(object sender, EventArgs e)
{
IntPtr hwnd;
if ((hwnd = new WindowInteropHelper(sender as Window).Handle) == IntPtr.Zero)
throw new InvalidOperationException("Could not get window handle.");
HwndSource.FromHwnd(hwnd).AddHook(WndProc);
}
const int WM_DWMCOLORIZATIONCOLORCHANGED = 0x320;
// see "https://stackoverflow.com/questions/13660976/get-the-active-color-of-windows-8-automatic-color-theme"
IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
switch (msg)
{
case WM_DWMCOLORIZATIONCOLORCHANGED:
/*
* Update gradient brushes with new color information from
* NativeMethods.DwmGetColorizationParams() or the registry.
*/
return IntPtr.Zero;
default:
return IntPtr.Zero;
}
}
欢迎参观我的港区,希望你能在这里找到需要的东西!