49 Commits

Author SHA1 Message Date
joyqi
0595d1126e add throw finish 2023-12-27 18:45:42 +08:00
joyqi
06fda5b1a6 add throwCallback to widget response 2023-12-18 15:44:41 +08:00
joyqi
a2c1fbf4a8 fix input element 2023-12-04 17:23:06 +08:00
Lu Fei
a1f62e1bcc Support IDN (#1629)
* Support IDN

* use js

* Optimize code

* Optimize code

* fix URL script

* remove unnecessary use

---------

Co-authored-by: joyqi <joyqi@segmentfault.com>
2023-12-04 14:07:20 +08:00
Lu Fei
438ac35487 Implement Ctrl+S or Command+S for save draft (#1628)
* Implement Ctrl+S or Command+S for save draft

* rename

* add Typecho.savePost

* fix upload file size

* add new uploader

* replace new uploader

* fix textarea change

* fix preview

* refactor post edit

* fix issue

* fix page edit

---------

Co-authored-by: joyqi <joyqi@segmentfault.com>
Co-authored-by: joyqi <magike.net@gmail.com>
2023-10-01 16:51:09 +08:00
joyqi
4c8c64c79e Feat/code refactor (#1626)
* remove all magic methods, add type for class properties

* refactor codes

* fix all

* refactor code

* fix type

* fix all

* fix request is method

* fix all

* fix router

* fix get page
2023-09-24 16:21:32 +08:00
joyqi
91ae56484d fix the source to get content type (#1622) 2023-09-22 10:50:39 +08:00
joyqi
596d117210 fix: when setting CheckBox's default value to null [ref #1568] 2023-05-16 12:33:49 +08:00
Ryan Lieu
c9de1b3b01 fix php 8.1 Deprecated: htmlspecialchars(): Passing null to parameter #1 (#1570)
* Fix multiple calls returning the same object

* fix: strtolower() passing null to parameter #1 ($string) of type string is deprecated

* fix: php 8.1 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
2023-05-15 18:30:44 +08:00
joyqi
a609b149e9 fix #1539 2023-03-03 16:37:32 +08:00
沈唁
c03ee2c8be Fix the error of getting request parameters (#1464) 2022-06-21 13:59:53 +08:00
沈唁
59a5c8d14d Fix category creation error when using xmlrpc (#1443)
* Fix category creation error when using xmlrpc

* Add use Typecho\Request
2022-05-23 10:44:59 +08:00
jiayx
047bd17f19 Fixes for PHP 8.1 compatibility (#1293)
* Fixes for PHP 8.1 compatibility

* Fixes for PHP 8.1 compatibility

* 优化写法

* remove mixed type

* fix nullable column

* fix query filter

* recover

* recover fileds

* recover

* Update Text.php

* Update Text.php

Co-authored-by: joyqi <joyqi@users.noreply.github.com>
2022-01-28 23:51:24 +08:00
joyqi
919911e288 fix redirect 2021-11-17 00:33:05 +08:00
joyqi
5d20d57be9 fix #1173 2021-09-14 00:24:56 +08:00
joyqi
419183ae2f fix #1167 2021-09-10 23:09:59 +08:00
joyqi
58cb9105d4 fix #1157 2021-09-09 15:06:05 +08:00
joyqi
57106d85c9 fix requestUri 2021-09-08 22:33:26 +08:00
joyqi
d24a16ad23 fix sandbox 2021-09-05 11:09:06 +08:00
joyqi
89649522c7 fix sandbox 2021-09-04 21:27:57 +08:00
joyqi
675efe1e43 add sandbox 2021-09-04 21:12:14 +08:00
joyqi
93b5656109 fix action 2021-08-27 18:27:21 +08:00
joyqi
539ef5e111 still working on it 2021-08-27 18:06:57 +08:00
joyqi
91a970521c New context layer for widget. Improve backup performance. 2021-08-26 15:00:38 +08:00
joyqi
926ec3e117 fix bug 2021-08-24 18:47:21 +08:00
joyqi
a2e784113a new request wrapper 2021-08-24 14:08:58 +08:00
joyqi
82fe09cf52 Finish refactoring widget helper 2021-08-23 12:32:18 +08:00
joyqi
5163c43610 remove old file 2021-08-22 01:27:32 +08:00
joyqi
e20e6804e9 Finish router and plugin refactoring 2021-08-22 01:27:04 +08:00
joyqi
0e4391006c Still working on namespace 2021-08-21 21:22:43 +08:00
joyqi
3d0b5d5f6c reformat code 2021-08-18 22:29:34 +08:00
joyqi
147f7ede98 fix #881
Add 'setInputsAttribute' method for all form element classes.
2019-09-03 13:44:16 +08:00
xyuanmu
632ac977ee Update Fake.php
测试发现,这个值是不需要的
2018-12-22 12:05:02 +08:00
xyuanmu
247aa9e043 fix Undefined variable: options in Fake.php 2018-12-14 23:14:57 +08:00
joyqi
3c171785d2 remove session requirement 2017-08-21 12:46:49 +08:00
祁宁
a7bcb93d75 fix #257 2014-06-27 17:57:55 +08:00
祁宁
7ee9b8b60a 修正使用不合法的utf-8字符串导致的数据判断错误 2014-03-12 12:58:44 +08:00
祁宁
0d30d33aa3 修正泄露路径的漏洞 2014-03-10 21:05:20 +08:00
joyqi
c056ba70fa fix #188
去掉所有不必要的require_once
2014-02-12 17:51:47 +08:00
joyqi
a3f17fbadb 修正class 2014-01-08 15:21:28 +08:00
fen
851eb6b57d 剥离 .btn 样式 2014-01-07 23:53:05 +08:00
joyqi
bc7fd3e097 fix #150
fix #163

增加更加多样的分页输出样式选项,包括
wrapTag    外层包裹标签名,默认ol
wrapClass  外层包裹类名
itemTag     内层标签名, 默认li
textTag      直接输出文字的标签名
currentClass  当前聚焦类名
prevClass   上一页类名
nextClass   下一页类名
2014-01-07 10:45:07 +08:00
joyqi
ed2b3590a4 改进自定义字段支持 2013-12-02 11:21:16 +08:00
joyqi
e6bf9e460d 今天就搞到这里,要去陪睡了 2013-11-24 23:35:44 +08:00
joyqi
c86c007dca 更新markdown,加上nofollow,修正链接自动识别
更新消息机制,将后台cookie识别改为前台js cookie识别
更新session机制
2013-11-22 12:34:13 +08:00
joyqi
4fdddab33d fixed #76 2013-11-20 23:24:56 +08:00
joyqi
10ed729f84 用marked.js以及MarkdownExtraExtended替换旧的markdown解析引擎
全面支持表格,以及回车换行
2013-11-20 11:16:25 +08:00
joyqi
5715153532 增加样式 2013-10-08 21:26:23 +08:00
joyqi
55379c90df 初始化
修改了上一个版本的一些错误,第一次提交
2013-07-17 13:13:57 +08:00