Kaynağa Gözat

chore: update dependencies

0xJacky 2 yıl önce
ebeveyn
işleme
431a9fd874

+ 4 - 2
frontend/components.d.ts

@@ -1,5 +1,7 @@
-// generated by unplugin-vue-components
-// We suggest you to commit this file into source control
+/* eslint-disable */
+/* prettier-ignore */
+// @ts-nocheck
+// Generated by unplugin-vue-components
 // Read more: https://github.com/vuejs/core/pull/3399
 import '@vue/runtime-core'
 

+ 11 - 11
frontend/package.json

@@ -1,7 +1,7 @@
 {
     "name": "nginx-ui-frontend-next",
     "private": true,
-    "version": "1.7.9",
+    "version": "1.8.0",
     "type": "commonjs",
     "scripts": {
         "dev": "vite",
@@ -17,9 +17,9 @@
         "@types/marked": "^4.0.8",
         "@types/nprogress": "^0.2.0",
         "@types/sortablejs": "^1.15.0",
-        "ant-design-vue": "^3.2.15",
+        "ant-design-vue": "^3.2.17",
         "apexcharts": "^3.36.3",
-        "axios": "^1.2.2",
+        "axios": "^1.3.5",
         "dayjs": "^1.11.7",
         "highlight.js": "^11.7.0",
         "marked": "^4.2.5",
@@ -28,26 +28,26 @@
         "pinia-plugin-persistedstate": "^3.0.2",
         "reconnecting-websocket": "^4.4.0",
         "vite-plugin-build-id": "^0.2.3",
-        "vue": "^3.2.45",
+        "vue": "^3.2.47",
         "vue-router": "4",
         "vue3-ace-editor": "^2.2.2",
         "vue3-apexcharts": "^1.4.1",
-        "vue3-gettext": "^2.3.4",
+        "vue3-gettext": "^2.5.0-alpha.1",
         "vuedraggable": "^4.1.0",
         "xterm": "^5.1.0",
         "xterm-addon-attach": "^0.8.0",
         "xterm-addon-fit": "^0.7.0"
     },
     "devDependencies": {
-        "@vitejs/plugin-vue": "^4.0.0",
-        "@vitejs/plugin-vue-jsx": "^3.0.0",
+        "@vitejs/plugin-vue": "^4.1.0",
+        "@vitejs/plugin-vue-jsx": "^3.0.1",
         "@zougt/vite-plugin-theme-preprocessor": "^1.4.8",
         "less": "^4.1.3",
-        "typescript": "^4.9.4",
-        "unplugin-vue-components": "^0.22.12",
-        "vite": "^4.1.4",
+        "typescript": "^5.0.4",
+        "unplugin-vue-components": "^0.24.1",
+        "vite": "^4.2.1",
         "vite-plugin-html": "^3.2.0",
         "vite-svg-loader": "^4.0.0",
-        "vue-tsc": "^1.0.24"
+        "vue-tsc": "^1.2.0"
     }
 }

+ 1 - 1
frontend/src/components/ChatGPT/ChatGPT.vue

@@ -8,7 +8,7 @@ import {marked} from 'marked'
 import hljs from 'highlight.js'
 import 'highlight.js/styles/vs2015.css'
 import Icon, {SendOutlined} from '@ant-design/icons-vue'
-import Template from '@/views/template/Template.vue'
+
 import openai from '@/api/openai'
 import ChatGPT_logo from '@/assets/svg/ChatGPT_logo.svg'
 

+ 1 - 1
frontend/src/components/NginxControl/NginxControl.vue

@@ -4,7 +4,7 @@ import ngx from '@/api/ngx'
 import logLevel from '@/views/config/constants'
 import {message} from 'ant-design-vue'
 import {ReloadOutlined} from '@ant-design/icons-vue'
-import Template from '@/views/template/Template.vue'
+
 import {ref, watch} from 'vue'
 
 const {$gettext} = gettext

+ 1 - 1
frontend/src/components/StdDataDisplay/StdBatchEdit.vue

@@ -63,7 +63,7 @@ async function ok() {
         <std-data-entry
             ref="std_data_entry"
             :data-list="batchColumns"
-            v-model:data-source="data"
+            :data-source="data"
             :error="error"
         />
 

+ 1 - 1
frontend/src/components/StdDataDisplay/StdCurd.vue

@@ -179,7 +179,7 @@ const selectedRowKeys = ref([])
             <std-data-entry
                 ref="std_data_entry"
                 :data-list="editableColumns()"
-                v-model:data-source="data"
+                :data-source="data"
                 :error="error"
             />
 

+ 1 - 1
frontend/src/components/StdDataDisplay/StdTable.vue

@@ -474,7 +474,7 @@ function initSortable() {
         <std-data-entry
             v-if="!disable_search && searchColumns.length"
             :data-list="searchColumns"
-            v-model:data-source="params"
+            :data-source="params"
             layout="inline"
         >
             <template #action>

+ 1 - 1
frontend/src/version.json

@@ -1 +1 @@
-{"version":"1.7.9","build_id":92,"total_build":162}
+{"version":"1.8.0","build_id":98,"total_build":168}

+ 1 - 1
frontend/src/views/cert/Cert.vue

@@ -5,7 +5,7 @@ import {customRender, datetime} from '@/components/StdDataDisplay/StdTableTransf
 import {Badge} from 'ant-design-vue'
 import cert from '@/api/cert'
 import StdCurd from '@/components/StdDataDisplay/StdCurd.vue'
-import Template from '@/views/template/Template.vue'
+
 import CodeEditor from '@/components/CodeEditor/CodeEditor.vue'
 import CertInfo from '@/views/domain/cert/CertInfo.vue'
 import {h} from 'vue'

+ 0 - 1
frontend/src/views/cert/DNSCredential.vue

@@ -3,7 +3,6 @@ import {useGettext} from 'vue3-gettext'
 import {datetime} from '@/components/StdDataDisplay/StdTableTransformer'
 import dns_credential from '@/api/dns_credential'
 import StdCurd from '@/components/StdDataDisplay/StdCurd.vue'
-import Template from '@/views/template/Template.vue'
 import DNSChallenge from './DNSChallenge.vue'
 import {input} from '@/components/StdDataEntry'
 

+ 1 - 1
frontend/src/views/config/InspectConfig.vue

@@ -3,7 +3,7 @@ import ngx from '@/api/ngx'
 import {useGettext} from 'vue3-gettext'
 import {ref} from 'vue'
 import logLevel from '@/views/config/constants'
-import Template from '@/views/template/Template.vue'
+
 
 const {$gettext} = useGettext()
 

+ 1 - 1
frontend/src/views/domain/cert/IssueCert.vue

@@ -1,7 +1,7 @@
 <script setup lang="ts">
 import {useGettext} from 'vue3-gettext'
 import {computed, nextTick, provide, ref, watch} from 'vue'
-import Template from '@/views/template/Template.vue'
+
 import ObtainCert from '@/views/domain/cert/components/ObtainCert.vue'
 
 const {$gettext, interpolate} = useGettext()

+ 1 - 1
frontend/src/views/domain/ngx_conf/config_template/ConfigTemplate.vue

@@ -4,7 +4,7 @@ import template from '@/api/template'
 import {computed, provide, ref} from 'vue'
 import {storeToRefs} from 'pinia'
 import {useSettingsStore} from '@/pinia'
-import Template from '@/views/template/Template.vue'
+
 import DirectiveEditor from '@/views/domain/ngx_conf/directive/DirectiveEditor.vue'
 import LocationEditor from '@/views/domain/ngx_conf/LocationEditor.vue'
 import CodeEditor from '@/components/CodeEditor/CodeEditor.vue'

+ 1 - 1
frontend/src/views/nginx_log/NginxLog.vue

@@ -124,7 +124,7 @@ function on_scroll_log() {
     if (!loading.value && page.value > 0) {
         loading.value = true
         const elem = (logContainer.value as any as Element)
-        if (elem.scrollTop / elem.scrollHeight < 0.333) {
+        if (elem?.scrollTop / elem?.scrollHeight < 0.333) {
             nginx_log.page(page.value, {
                 conf_name: (route.query.conf_name as string),
                 type: logType(),

+ 1 - 1
frontend/src/views/system/Upgrade.vue

@@ -5,7 +5,7 @@ import {computed, ref} from 'vue'
 import version from '@/version.json'
 import dayjs from 'dayjs'
 import {marked} from 'marked'
-import Template from '@/views/template/Template.vue'
+
 import websocket from '@/lib/websocket'
 import {message} from 'ant-design-vue'
 

+ 1 - 1
frontend/version.json

@@ -1 +1 @@
-{"version":"1.7.9","build_id":92,"total_build":162}
+{"version":"1.8.0","build_id":98,"total_build":168}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 308 - 331
frontend/yarn.lock


+ 72 - 66
go.mod

@@ -9,7 +9,7 @@ require (
 	github.com/gin-contrib/static v0.0.1
 	github.com/gin-gonic/gin v1.9.0
 	github.com/go-acme/lego/v4 v4.10.2
-	github.com/go-co-op/gocron v1.19.0
+	github.com/go-co-op/gocron v1.20.1
 	github.com/go-playground/locales v0.14.1
 	github.com/go-playground/universal-translator v0.18.1
 	github.com/go-playground/validator/v10 v10.12.0
@@ -20,27 +20,28 @@ require (
 	github.com/jpillora/overseer v1.1.6
 	github.com/lib/pq v1.10.7
 	github.com/pkg/errors v0.9.1
-	github.com/sashabaranov/go-openai v1.5.8
-	github.com/shirou/gopsutil/v3 v3.23.1
+	github.com/sashabaranov/go-openai v1.7.0
+	github.com/shirou/gopsutil/v3 v3.23.3
 	github.com/spf13/cast v1.5.0
 	github.com/tufanbarisyildirim/gonginx v0.0.0-20230325082000-26dcb15a9df4
 	github.com/unknwon/com v1.0.1
-	golang.org/x/crypto v0.7.0
+	golang.org/x/crypto v0.8.0
 	gopkg.in/ini.v1 v1.67.0
-	gorm.io/driver/sqlite v1.4.4
+	gorm.io/driver/sqlite v1.5.0
 	gorm.io/gen v0.3.21
-	gorm.io/gorm v1.24.6
+	gorm.io/gorm v1.25.0
 	gorm.io/plugin/dbresolver v1.4.1
 )
 
 require (
-	cloud.google.com/go v0.54.0 // indirect
-	github.com/Azure/azure-sdk-for-go v32.4.0+incompatible // indirect
+	cloud.google.com/go/compute v1.19.1 // indirect
+	cloud.google.com/go/compute/metadata v0.2.3 // indirect
+	github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect
 	github.com/Azure/go-autorest v14.2.0+incompatible // indirect
-	github.com/Azure/go-autorest/autorest v0.11.24 // indirect
-	github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect
-	github.com/Azure/go-autorest/autorest/azure/auth v0.5.11 // indirect
-	github.com/Azure/go-autorest/autorest/azure/cli v0.4.5 // indirect
+	github.com/Azure/go-autorest/autorest v0.11.28 // indirect
+	github.com/Azure/go-autorest/autorest/adal v0.9.23 // indirect
+	github.com/Azure/go-autorest/autorest/azure/auth v0.5.12 // indirect
+	github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 // indirect
 	github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
 	github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
 	github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
@@ -48,43 +49,46 @@ require (
 	github.com/Azure/go-autorest/tracing v0.6.0 // indirect
 	github.com/OpenDNS/vegadns2client v0.0.0-20180418235048-a3fa4a771d87 // indirect
 	github.com/StackExchange/wmi v1.2.1 // indirect
-	github.com/akamai/AkamaiOPEN-edgegrid-golang v1.2.1 // indirect
-	github.com/aliyun/alibaba-cloud-sdk-go v1.61.1755 // indirect
+	github.com/akamai/AkamaiOPEN-edgegrid-golang v1.2.2 // indirect
+	github.com/aliyun/alibaba-cloud-sdk-go v1.62.281 // indirect
 	github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect
-	github.com/aws/aws-sdk-go v1.39.0 // indirect
-	github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
+	github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
+	github.com/aws/aws-sdk-go v1.44.242 // indirect
+	github.com/boombuler/barcode v1.0.1 // indirect
 	github.com/bytedance/sonic v1.8.7 // indirect
 	github.com/cenkalti/backoff/v4 v4.2.0 // indirect
 	github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
-	github.com/civo/civogo v0.3.11 // indirect
+	github.com/civo/civogo v0.3.29 // indirect
 	github.com/cloudflare/cloudflare-go v0.49.0 // indirect
 	github.com/cpu/goacmedns v0.1.1 // indirect
 	github.com/davecgh/go-spew v1.1.1 // indirect
-	github.com/deepmap/oapi-codegen v1.9.1 // indirect
+	github.com/deepmap/oapi-codegen v1.12.4 // indirect
 	github.com/dimchansky/utfbom v1.1.1 // indirect
-	github.com/dnsimple/dnsimple-go v0.71.1 // indirect
+	github.com/dnsimple/dnsimple-go v1.2.0 // indirect
 	github.com/exoscale/egoscale v0.90.0 // indirect
 	github.com/fatih/structs v1.1.0 // indirect
-	github.com/fsnotify/fsnotify v1.5.4 // indirect
+	github.com/fsnotify/fsnotify v1.6.0 // indirect
 	github.com/ghodss/yaml v1.0.0 // indirect
 	github.com/gin-contrib/sse v0.1.0 // indirect
-	github.com/go-errors/errors v1.0.1 // indirect
+	github.com/go-errors/errors v1.4.2 // indirect
 	github.com/go-jose/go-jose/v3 v3.0.0 // indirect
 	github.com/go-ole/go-ole v1.2.6 // indirect
-	github.com/go-resty/resty/v2 v2.1.1-0.20191201195748-d7b97669fe48 // indirect
+	github.com/go-resty/resty/v2 v2.7.0 // indirect
 	github.com/go-sql-driver/mysql v1.7.0 // indirect
 	github.com/goccy/go-json v0.10.2 // indirect
-	github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
-	github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
-	github.com/golang/protobuf v1.5.2 // indirect
+	github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
+	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
+	github.com/golang/protobuf v1.5.3 // indirect
 	github.com/google/go-querystring v1.1.0 // indirect
-	github.com/googleapis/gax-go/v2 v2.0.5 // indirect
-	github.com/gophercloud/gophercloud v1.0.0 // indirect
-	github.com/gophercloud/utils v0.0.0-20210216074907-f6de111f2eae // indirect
-	github.com/hashicorp/errwrap v1.0.0 // indirect
+	github.com/google/s2a-go v0.1.1 // indirect
+	github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
+	github.com/googleapis/gax-go/v2 v2.8.0 // indirect
+	github.com/gophercloud/gophercloud v1.3.0 // indirect
+	github.com/gophercloud/utils v0.0.0-20230330070308-5bd5e1d608f8 // indirect
+	github.com/hashicorp/errwrap v1.1.0 // indirect
 	github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
 	github.com/hashicorp/go-multierror v1.1.1 // indirect
-	github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
+	github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
 	github.com/iij/doapi v0.0.0-20190504054126-0bbf12d6d7df // indirect
 	github.com/infobloxopen/infoblox-go-client v1.1.1 // indirect
 	github.com/jinzhu/inflection v1.0.0 // indirect
@@ -94,85 +98,87 @@ require (
 	github.com/json-iterator/go v1.1.12 // indirect
 	github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213 // indirect
 	github.com/klauspost/cpuid/v2 v2.2.4 // indirect
-	github.com/kolo/xmlrpc v0.0.0-20200310150728-e0350524596b // indirect
+	github.com/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b // indirect
 	github.com/labbsr0x/bindman-dns-webhook v1.0.2 // indirect
 	github.com/labbsr0x/goh v1.0.1 // indirect
-	github.com/leodido/go-urn v1.2.2 // indirect
-	github.com/linode/linodego v1.9.1 // indirect
+	github.com/leodido/go-urn v1.2.3 // indirect
+	github.com/linode/linodego v1.16.1 // indirect
 	github.com/liquidweb/go-lwApi v0.0.5 // indirect
-	github.com/liquidweb/liquidweb-cli v0.6.9 // indirect
+	github.com/liquidweb/liquidweb-cli v0.6.10 // indirect
 	github.com/liquidweb/liquidweb-go v1.6.3 // indirect
 	github.com/lufia/plan9stats v0.0.0-20230326075908-cb1d2100619a // indirect
 	github.com/mattn/go-isatty v0.0.18 // indirect
 	github.com/mattn/go-sqlite3 v1.14.16 // indirect
 	github.com/miekg/dns v1.1.53 // indirect
-	github.com/mimuret/golang-iij-dpf v0.7.1 // indirect
+	github.com/mimuret/golang-iij-dpf v0.9.1 // indirect
 	github.com/mitchellh/go-homedir v1.1.0 // indirect
 	github.com/mitchellh/mapstructure v1.5.0 // indirect
 	github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
 	github.com/modern-go/reflect2 v1.0.2 // indirect
 	github.com/namedotcom/go v0.0.0-20180403034216-08470befbe04 // indirect
 	github.com/nrdcg/auroradns v1.1.0 // indirect
-	github.com/nrdcg/desec v0.6.0 // indirect
+	github.com/nrdcg/desec v0.7.0 // indirect
 	github.com/nrdcg/dnspod-go v0.4.0 // indirect
 	github.com/nrdcg/freemyip v0.2.0 // indirect
-	github.com/nrdcg/goinwx v0.8.1 // indirect
+	github.com/nrdcg/goinwx v0.8.2 // indirect
 	github.com/nrdcg/namesilo v0.2.1 // indirect
-	github.com/nrdcg/porkbun v0.1.1 // indirect
+	github.com/nrdcg/porkbun v0.2.0 // indirect
+	github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect
 	github.com/oracle/oci-go-sdk v24.3.0+incompatible // indirect
-	github.com/ovh/go-ovh v1.1.0 // indirect
+	github.com/ovh/go-ovh v1.4.1 // indirect
 	github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
 	github.com/pelletier/go-toml/v2 v2.0.7 // indirect
 	github.com/pmezard/go-difflib v1.0.0 // indirect
 	github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect
-	github.com/pquerna/otp v1.3.0 // indirect
+	github.com/pquerna/otp v1.4.0 // indirect
 	github.com/robfig/cron/v3 v3.0.1 // indirect
-	github.com/sacloud/api-client-go v0.2.1 // indirect
-	github.com/sacloud/go-http v0.1.2 // indirect
-	github.com/sacloud/iaas-api-go v1.3.2 // indirect
-	github.com/sacloud/packages-go v0.0.5 // indirect
-	github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9 // indirect
-	github.com/sirupsen/logrus v1.8.1 // indirect
+	github.com/sacloud/api-client-go v0.2.7 // indirect
+	github.com/sacloud/go-http v0.1.5 // indirect
+	github.com/sacloud/iaas-api-go v1.9.2 // indirect
+	github.com/sacloud/packages-go v0.0.8 // indirect
+	github.com/scaleway/scaleway-sdk-go v1.0.0-beta.15 // indirect
+	github.com/shoenig/go-m1cpu v0.1.5 // indirect
+	github.com/sirupsen/logrus v1.9.0 // indirect
 	github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9 // indirect
-	github.com/softlayer/softlayer-go v1.0.6 // indirect
+	github.com/softlayer/softlayer-go v1.1.2 // indirect
 	github.com/softlayer/xmlrpc v0.0.0-20200409220501-5f089df7cb7e // indirect
 	github.com/stretchr/objx v0.5.0 // indirect
 	github.com/stretchr/testify v1.8.2 // indirect
-	github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.490 // indirect
-	github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.490 // indirect
+	github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.637 // indirect
+	github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.637 // indirect
 	github.com/tklauser/go-sysconf v0.3.11 // indirect
 	github.com/tklauser/numcpus v0.6.0 // indirect
-	github.com/transip/gotransip/v6 v6.17.0 // indirect
+	github.com/transip/gotransip/v6 v6.20.0 // indirect
 	github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
 	github.com/ugorji/go/codec v1.2.11 // indirect
-	github.com/ultradns/ultradns-go-sdk v1.4.0-20221107152238-f3f1d1d // indirect
+	github.com/ultradns/ultradns-go-sdk v1.4.1-20230224143201-0d8b0f6 // indirect
 	github.com/vinyldns/go-vinyldns v0.9.16 // indirect
 	github.com/vultr/govultr/v2 v2.17.2 // indirect
-	github.com/yandex-cloud/go-genproto v0.0.0-20220805142335-27b56ddae16f // indirect
-	github.com/yandex-cloud/go-sdk v0.0.0-20220805164847-cf028e604997 // indirect
+	github.com/yandex-cloud/go-genproto v0.0.0-20230410092700-15216dc82345 // indirect
+	github.com/yandex-cloud/go-sdk v0.0.0-20230403093608-cc5174142a48 // indirect
 	github.com/yusufpapurcu/wmi v1.2.2 // indirect
-	go.opencensus.io v0.22.3 // indirect
+	go.opencensus.io v0.24.0 // indirect
 	go.uber.org/ratelimit v0.2.0 // indirect
 	golang.org/x/arch v0.3.0 // indirect
-	golang.org/x/mod v0.9.0 // indirect
-	golang.org/x/net v0.8.0 // indirect
-	golang.org/x/oauth2 v0.4.0 // indirect
+	golang.org/x/mod v0.10.0 // indirect
+	golang.org/x/net v0.9.0 // indirect
+	golang.org/x/oauth2 v0.7.0 // indirect
 	golang.org/x/sync v0.1.0 // indirect
-	golang.org/x/sys v0.6.0 // indirect
-	golang.org/x/text v0.8.0 // indirect
+	golang.org/x/sys v0.7.0 // indirect
+	golang.org/x/text v0.9.0 // indirect
 	golang.org/x/time v0.3.0 // indirect
-	golang.org/x/tools v0.7.0 // indirect
-	google.golang.org/api v0.20.0 // indirect
+	golang.org/x/tools v0.8.0 // indirect
+	google.golang.org/api v0.118.0 // indirect
 	google.golang.org/appengine v1.6.7 // indirect
-	google.golang.org/genproto v0.0.0-20211021150943-2b146023228c // indirect
-	google.golang.org/grpc v1.41.0 // indirect
+	google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
+	google.golang.org/grpc v1.54.0 // indirect
 	google.golang.org/protobuf v1.30.0 // indirect
 	gopkg.in/fsnotify.v1 v1.4.7 // indirect
-	gopkg.in/ns1/ns1-go.v2 v2.6.5 // indirect
+	gopkg.in/ns1/ns1-go.v2 v2.7.5 // indirect
 	gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
 	gopkg.in/yaml.v2 v2.4.0 // indirect
 	gopkg.in/yaml.v3 v3.0.1 // indirect
-	gorm.io/datatypes v1.1.1 // indirect
-	gorm.io/driver/mysql v1.4.7 // indirect
+	gorm.io/datatypes v1.2.0 // indirect
+	gorm.io/driver/mysql v1.5.0 // indirect
 	gorm.io/hints v1.1.1 // indirect
 )

Dosya farkı çok büyük olduğundan ihmal edildi
+ 200 - 282
go.sum


+ 1 - 1
server/model/model.go

@@ -130,6 +130,6 @@ func GetListWithPagination(models interface{},
 type Method interface {
 	// FirstByID Where("id=@id")
 	FirstByID(id int) (*gen.T, error)
-	// DeleteByID update @@table set deleted_at=NOW() where id=@id
+	// DeleteByID update @@table set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=@id
 	DeleteByID(id int) error
 }

+ 2 - 2
server/query/auth_tokens.gen.go

@@ -104,13 +104,13 @@ func (a authTokenDo) FirstByID(id int) (result *model.AuthToken, err error) {
 	return
 }
 
-// DeleteByID update @@table set deleted_at=NOW() where id=@id
+// DeleteByID update @@table set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=@id
 func (a authTokenDo) DeleteByID(id int) (err error) {
 	var params []interface{}
 
 	var generateSQL strings.Builder
 	params = append(params, id)
-	generateSQL.WriteString("update auth_tokens set deleted_at=NOW() where id=? ")
+	generateSQL.WriteString("update auth_tokens set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=? ")
 
 	var executeSQL *gorm.DB
 	executeSQL = a.UnderlyingDB().Exec(generateSQL.String(), params...) // ignore_security_alert

+ 2 - 2
server/query/auths.gen.go

@@ -124,13 +124,13 @@ func (a authDo) FirstByID(id int) (result *model.Auth, err error) {
 	return
 }
 
-// DeleteByID update @@table set deleted_at=NOW() where id=@id
+// DeleteByID update @@table set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=@id
 func (a authDo) DeleteByID(id int) (err error) {
 	var params []interface{}
 
 	var generateSQL strings.Builder
 	params = append(params, id)
-	generateSQL.WriteString("update auths set deleted_at=NOW() where id=? ")
+	generateSQL.WriteString("update auths set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=? ")
 
 	var executeSQL *gorm.DB
 	executeSQL = a.UnderlyingDB().Exec(generateSQL.String(), params...) // ignore_security_alert

+ 2 - 2
server/query/certs.gen.go

@@ -225,13 +225,13 @@ func (c certDo) FirstByID(id int) (result *model.Cert, err error) {
 	return
 }
 
-// DeleteByID update @@table set deleted_at=NOW() where id=@id
+// DeleteByID update @@table set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=@id
 func (c certDo) DeleteByID(id int) (err error) {
 	var params []interface{}
 
 	var generateSQL strings.Builder
 	params = append(params, id)
-	generateSQL.WriteString("update certs set deleted_at=NOW() where id=? ")
+	generateSQL.WriteString("update certs set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=? ")
 
 	var executeSQL *gorm.DB
 	executeSQL = c.UnderlyingDB().Exec(generateSQL.String(), params...) // ignore_security_alert

+ 2 - 2
server/query/chat_gpt_logs.gen.go

@@ -108,13 +108,13 @@ func (c chatGPTLogDo) FirstByID(id int) (result *model.ChatGPTLog, err error) {
 	return
 }
 
-// DeleteByID update @@table set deleted_at=NOW() where id=@id
+// DeleteByID update @@table set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=@id
 func (c chatGPTLogDo) DeleteByID(id int) (err error) {
 	var params []interface{}
 
 	var generateSQL strings.Builder
 	params = append(params, id)
-	generateSQL.WriteString("update chat_gpt_logs set deleted_at=NOW() where id=? ")
+	generateSQL.WriteString("update chat_gpt_logs set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=? ")
 
 	var executeSQL *gorm.DB
 	executeSQL = c.UnderlyingDB().Exec(generateSQL.String(), params...) // ignore_security_alert

+ 2 - 2
server/query/config_backups.gen.go

@@ -128,13 +128,13 @@ func (c configBackupDo) FirstByID(id int) (result *model.ConfigBackup, err error
 	return
 }
 
-// DeleteByID update @@table set deleted_at=NOW() where id=@id
+// DeleteByID update @@table set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=@id
 func (c configBackupDo) DeleteByID(id int) (err error) {
 	var params []interface{}
 
 	var generateSQL strings.Builder
 	params = append(params, id)
-	generateSQL.WriteString("update config_backups set deleted_at=NOW() where id=? ")
+	generateSQL.WriteString("update config_backups set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=? ")
 
 	var executeSQL *gorm.DB
 	executeSQL = c.UnderlyingDB().Exec(generateSQL.String(), params...) // ignore_security_alert

+ 2 - 2
server/query/dns_credentials.gen.go

@@ -128,13 +128,13 @@ func (d dnsCredentialDo) FirstByID(id int) (result *model.DnsCredential, err err
 	return
 }
 
-// DeleteByID update @@table set deleted_at=NOW() where id=@id
+// DeleteByID update @@table set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=@id
 func (d dnsCredentialDo) DeleteByID(id int) (err error) {
 	var params []interface{}
 
 	var generateSQL strings.Builder
 	params = append(params, id)
-	generateSQL.WriteString("update dns_credentials set deleted_at=NOW() where id=? ")
+	generateSQL.WriteString("update dns_credentials set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=? ")
 
 	var executeSQL *gorm.DB
 	executeSQL = d.UnderlyingDB().Exec(generateSQL.String(), params...) // ignore_security_alert

+ 2 - 2
server/query/sites.gen.go

@@ -124,13 +124,13 @@ func (s siteDo) FirstByID(id int) (result *model.Site, err error) {
 	return
 }
 
-// DeleteByID update @@table set deleted_at=NOW() where id=@id
+// DeleteByID update @@table set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=@id
 func (s siteDo) DeleteByID(id int) (err error) {
 	var params []interface{}
 
 	var generateSQL strings.Builder
 	params = append(params, id)
-	generateSQL.WriteString("update sites set deleted_at=NOW() where id=? ")
+	generateSQL.WriteString("update sites set deleted_at=strftime('%Y-%m-%d %H:%M:%S','now') where id=? ")
 
 	var executeSQL *gorm.DB
 	executeSQL = s.UnderlyingDB().Exec(generateSQL.String(), params...) // ignore_security_alert

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor