Chen Hai Yun

在这里,记录点点滴滴

TMP

https://magic-bucket.s3.cn-north-1.amazonaws.com.cn/edge-electron-linux-x64.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAYCLAVGJ3GHSWWGUF%2F20220309%2Fcn-north-1%2Fs3%2Faws4_request&X-Amz-Date=20220309T015741Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=086ced514a078f23e8b94746b2d0be35be747bafbeb67461fa85db85385984cc [Desktop Entry] Name=SAB EDGE Exec=/path/to/binary Terminal=false Type=Application StartupNotify=true Encoding=UTF-8

react引入报错Import in body of module reorder to top import/first

eact引入报错:Import in body of module; reorder to top import/first一、问题情形 想引入模块:import { CSSTransition } from 'react-transition-group'; import React, { Component } from 'react'; const logo = require("./images/logo.png"); const icon_beta = require("./images/icon_beta.png"); import { CSSTransition } from 'react-transition-group'; 结果报错,错误提示如下: 二、解决方法 将import语句写在const语句上面即可: import React, { Component } from 'react';

Mac 日历假日订阅服务返回格式

以2022年的国家法定假期为例 ➜ ~ curl http://icalendar.simonchen.xyz:8088/ical BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:中国法定节假日 X-APPLE-CALENDAR-COLOR:#8DEEEE PRODID:xhh52ch@gmail.com BEGIN:VEVENT DTSTAMP:20211218T160000Z DTSTART;VALUE=DATE:20210101 DTEND;VALUE=DATE:20210104 SUMMARY:元旦假期 TZID:Asia/Shanghai UID:93eff3fb-00cb-4855-b0ec-25996122cb07 DESCRIPTION:元旦:2021年1月1日至3日放假,共3天; END:VEVENT BEGIN:VEVENT DTSTAMP:20211218T160000Z