文件操作 - TimeSyncButton.test.tsx.snap
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/features/explore/__snapshots__/TimeSyncButton.test.tsx.snap
编辑文件内容
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`TimeSyncButton should render component 1`] = ` <TimeSyncButton isSynced={true} onClick={[Function]} > <Component content={[Function]} placement="bottom" > <PopoverController content={[Function]} placement="bottom" > <button aria-label="Synced times" className="btn navbar-button navbar-button--attached explore-active-button" onClick={[Function]} onMouseEnter={[Function]} onMouseLeave={[Function]} > <Icon className="css-1c3xqzq-topPadding icon-brand-gradient" name="link" size="lg" > <div className="css-1cvxpvr" > <UilLink className="icon-brand-gradient css-1q2xpj8-topPadding" color="currentColor" size={18} > <svg className="icon-brand-gradient css-1q2xpj8-topPadding" fill="currentColor" height={18} viewBox="0 0 24 24" width={18} xmlns="http://www.w3.org/2000/svg" > <path d="M10,17.55,8.23,19.27a2.47,2.47,0,0,1-3.5-3.5l4.54-4.55a2.46,2.46,0,0,1,3.39-.09l.12.1a1,1,0,0,0,1.4-1.43A2.75,2.75,0,0,0,14,9.59a4.46,4.46,0,0,0-6.09.22L3.31,14.36a4.48,4.48,0,0,0,6.33,6.33L11.37,19A1,1,0,0,0,10,17.55ZM20.69,3.31a4.49,4.49,0,0,0-6.33,0L12.63,5A1,1,0,0,0,14,6.45l1.73-1.72a2.47,2.47,0,0,1,3.5,3.5l-4.54,4.55a2.46,2.46,0,0,1-3.39.09l-.12-.1a1,1,0,0,0-1.4,1.43,2.75,2.75,0,0,0,.23.21,4.47,4.47,0,0,0,6.09-.22l4.55-4.55A4.49,4.49,0,0,0,20.69,3.31Z" /> </svg> </UilLink> </div> </Icon> </button> </PopoverController> </Component> </TimeSyncButton> `;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件