Show newer
王小美 boosted

Cliffs at Navajo Loop Trail below Sunset Point, Bryce Canyon National Park, Utah, USA

王小美 boosted

​互动抽奖
坎公快讯!公测200日即将到来之际,11月11日维护结束后,《坎公骑冠剑》将开启【200天纪念签到 免费礼包】!14日共计可获得【钻石*6000+超凡突破锤*1+体力*100+经验结晶*140000+金币*100000】,关注并转发本条动态,我们将于11月14日抽取5名守护者送出坎公骑冠剑周边礼包一份,感谢各位守护者对我们的支持~
==============
(一)活动时间
11月11日维护完成后~11月25日停机维护前领取

(二)活动条件
在探险中通关“世界1”后,可前往卡马逊商店开启【200天纪念签到 免费礼包】;该礼包仅限开启1次。

(三)活动奖励一览
开启【200天纪念签到 免费礼包】后,活动时间内14天共计可领取【钻石*6000+超凡突破锤*1+体力*100+经验结晶*140000+金币*100000】奖励!

:sys_bilibili: t.bilibili.com/591343612850521

封装了一个vue 的 navigation hook:

import type { AxiosResponse } from 'axios'
import { reactive } from 'vue'
import { ElMessage } from 'element-plus'
import type { Pagination, PaginationModel } from '@/model/rootObject'
import type { PaginationRequestBase } from '@/apis/requestType'

export const usePagination = <Q extends PaginationRequestBase, T>(
  AxiosRequest: (query: Q) => Promise<AxiosResponse<PaginationModel<T>, any>>,
  queryOptions: Parameters<typeof AxiosRequest>[0]
) => {
  const state = reactive({
    fetchingError: false,
    fetching: true,
    list: [] as T[],
    pagination: { current: queryOptions.current || 1, pages: NaN, total: NaN, size: queryOptions.size || 10 } as Pagination
  })

  const fetchList = async () => {
    // @ts-ignore
    delete queryOptions.current
    // @ts-ignore
    delete queryOptions.size

    AxiosRequest({
      ...queryOptions,
      current: state.pagination.current,
      size: state.pagination.size
    })
      .then((res) => {
        state.list = res.data.data.records as typeof state.list

        state.pagination.current = res.data.data.current
        state.pagination.pages = res.data.data.pages
        state.pagination.total = res.data.data.total
        state.pagination.size = res.data.data.size
        state.fetchingError = false
      })
      .catch((err) => {
        state.fetchingError = true
        ElMessage.error(err.message)
      })
      .finally(() => {
        state.fetching = false
      })
  }

  const handlePageSizeChange = (val: number) => {
    state.pagination.size = val
    fetchList()
  }

  const handlePageCurrentChange = (val: number) => {
    state.pagination.current = val
    fetchList()
  }

  const handlePagePrevClick = () => {
    state.pagination.current--
    state.pagination.current = Math.max(state.pagination.current, 0)
    fetchList()
  }

  const handlePageNextClick = () => {
    state.pagination.current++
    state.pagination.current = Math.min(state.pagination.current, state.pagination.pages)
    fetchList()
  }

  return { state, methods: { fetchList, handlePageSizeChange, handlePageCurrentChange, handlePagePrevClick, handlePageNextClick } }
}

似乎是和插件TSLint冲突了,把TSLint卸载以后就好了(光是禁用也不行)

Show thread

@xiamx 好哒,今天下午就一直在调主从同步 🙈

王小美 boosted

Fedora怎么还自带这种玩意儿,可视化逼格太低了啦

@xiamx 大佬你来了!我想问问我这该怎么备份啊,8G的数据(vacuum以后是6点几G)导出太麻烦了

:bili_recixilie_nibiyoule:
//转发自: @谭乔: 【谭sir与大爷】过 命 之 交
明日之后第四季:生存之战三部曲之《末日无间》
“你是为了我学会三轮车漂移的吗?”
“只能,漂一点点……“

:sys_video: api.2heng.xin/bilibili/og.php?
:sys_bilibili: t.bilibili.com/590775234063080

今天才发现以前写的自动备份脚本忘记写密码了,于是每次pg dump实际都没有执行成功,这一年多一直就是备份了个寂寞,也幸亏今年没出现什么意外

然而真的今天跑了一次pg dumpall,发现性能开销极大(8GB的数据库,把其他所有服务停了也得20分钟才能dump完),打算以后备份策略改为直接停机压缩打包所有PostgreSQL文件 :catthink:

Show thread

吓死我了,这还以为刚刚把数据库搞丢了

分享动态
//转发自: @eee花凋零: 【原神】新功能?待机动画竟能互动了
视频整了不少时间了 好兄弟点个赞吧
这是对UP主最大的动力,,Ծ‸Ծ,, 
投币 收藏 我直接好耶 ヾ(✿゚▽゚)ノ
(EDG好样的)

:sys_video: api.2heng.xin/bilibili/og.php?
:sys_bilibili: t.bilibili.com/590691203025001

Show older
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。