chore: 清理临时文件与工作流文档,完善句子来源功能

1. 删除本地临时调试文件、工作流模板、闲置脚本与脑暴记录
2. 新增极简在线记事本API部署文件
3. 修复Flutter端拾光Sheet布局与状态更新问题
4. 完善句子来源后端API与前端导入逻辑
5. 修复macOS平台secure存储插件引用
This commit is contained in:
Developer
2026-06-11 04:39:16 +08:00
parent b36b9bcf9e
commit 7a6d555e4c
96 changed files with 1000 additions and 38691 deletions

83
docs/ctc/index.php Executable file
View File

@@ -0,0 +1,83 @@
<?php
$base_url = getenv('MWN_BASE_URL') ?: 'https://ctc.s2ss.com';
$save_path = getenv('MWN_SAVE_PATH') ?: '_notes';
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');
function save($path, $text)
{
file_put_contents($path, $text);
if (!strlen($text)) {
unlink($path);
}
return true;
}
if (isset($_GET['new'])) {
$path_url = substr(str_shuffle('234579abcdefghjkmnpqrstwxyz'), -5);
$path = $save_path . '/' . $path_url;
$url = $base_url . '/' . $path_url;
if (isset($_GET['text'])) {
$text = $_GET['text'];
if (save($path, $text)) {
echo("$url");
}
die;
}
if (isset($_POST['text'])) {
$text = $_POST['text'];
if (save($path, $text)) {
echo("$url");
}
die;
}
}
if (!isset($_GET['note']) || !preg_match('/^[a-zA-Z0-9_-]+$/', $_GET['note']) || strlen($_GET['note']) > 64) {
header("Location: $base_url/" . substr(str_shuffle('234579abcdefghjkmnpqrstwxyz'), -5));
die;
}
$path = $save_path . '/' . $_GET['note'];
if (isset($_POST['text'])) {
$text = $_POST['text'];
if (save($path, $text)) {
echo("saved");
}
die;
}
if (isset($_GET['text'])) {
$text = $_GET['text'];
if (save($path, $text)) {
echo("saved");
}
die;
}
if (isset($_GET['raw'])) {
if (is_file($path)) {
echo(file_get_contents($path));
} else {
header('HTTP/1.0 404 Not Found');
}
die;
}
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Minimalist Web Notepad ">
<title><?php print $_GET['note'];
?></title>
<link rel="shortcut icon" href="<?php print $base_url; ?>/favicon.ico">
<link rel="stylesheet" href="<?php print $base_url; ?>/styles.css">
</head>
<body>
<div class="container">
<textarea id="content"><?php
if (is_file($path)) {
print htmlspecialchars(file_get_contents($path), ENT_QUOTES, 'UTF-8');
}
?></textarea>
</div>
<pre id="printable"></pre>
<script src="<?php print $base_url; ?>/script.js"></script>
</body>
</html>