فهرست منبع

some minor improvements and spelling corrections.

oldj 4 سال پیش
والد
کامیت
4c4cfacddb
4فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
  1. 1 1
      scripts/make.js
  2. 1 3
      src/renderer/models/useConfigs.ts
  3. 1 1
      src/renderer/models/useHostsData.ts
  4. 1 1
      src/renderer/styles/themes/light.less

+ 1 - 1
scripts/make.js

@@ -1,5 +1,5 @@
 /**
- * build
+ * make
  * @author: oldj
  * @homepage: https://oldj.net
  */

+ 1 - 3
src/renderer/models/useConfigs.ts

@@ -1,5 +1,5 @@
 /**
- * useHosts
+ * useConfigs
  * @author: oldj
  * @homepage: https://oldj.net
  */
@@ -12,9 +12,7 @@ export default function useConfigs() {
   const [ configs, setConfigs ] = useState<ConfigsType | null>(null)
 
   const loadConfigs = async () => {
-    let new_configs = await actions.configAll()
     setConfigs(await actions.configAll())
-    return new_configs
   }
 
   const updateConfigs = async (kv: Partial<ConfigsType>) => {

+ 1 - 1
src/renderer/models/useHostsData.ts

@@ -1,5 +1,5 @@
 /**
- * useHosts
+ * useHostsData
  * @author: oldj
  * @homepage: https://oldj.net
  */

+ 1 - 1
src/renderer/styles/themes/light.less

@@ -1,4 +1,4 @@
-:global( .theme-light) {
+:global(.theme-light) {
   --swh-primary-color: #007aff;
   --swh-border-color-0: #ccc;
   --swh-border-color-1: #d5d3d9;