Giter Site home page Giter Site logo

yonkoma's People

Contributors

divazone avatar doomleika avatar kgamecarter avatar komica02 avatar nameresu avatar nekosyndrome avatar pobo2233 avatar tp6vup54 avatar you74674 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yonkoma's Issues

將 Replies 改為以中文顯示

雖然只是小問題,但如果能把中文化也列入考量的話會更好

例如將 607 行的 Replies(" + cnt + "): 改為 回覆(" + cnt + "): 這樣

補充:還有將 712 行的 Quick Reply 改為 快速回覆

問題: 解決一定時間舊串被貼違禁圖

Source

原文 No. 12074

原文

admin2◆xLhYJKRDXs17/05/15(一)06:40ID:SqMb5BQoNo.12074

12064
以需要增加的功能這點來說,我是開放讓各位一起出主意的,想當年我們所以加上webm,也是聽綜合版的人提到希望可以增加,之後才讓他實現的;我也認為只有版眾知道自己需要甚麼,所以我是希望開放各位可以分工,有人可以想概念,有人可以實現,最後我們經過把他加上去。

不過現在我有一個比較現實的一個問題需要先解決。各位知道之前綜合版出現的事情。我在徵詢之下把記錄檔拉升到一百萬筆,希望可以長期保存討論資料。為了防止舊文重複佔用,所以我設定是8小時強制下沈,現在設定是6小時。不過下沈以後的討論串還是可以回文,而出問題的可能就是po到很久以前的某一串,沒人看到,然後張貼違規圖片,之後才出事情的。可不可能增加一個設定,就是6小時以上強制下沈,12小時以上則stop也不能回文。

問題

上次Komica被檢舉掉的事件來自有惡意使用者在沉下去的舊串放違禁突然後檢舉的combo行為,需要反制對策

admin2◆xLhYJKRDXs17 提案

超過X小時的串禁止回應。

Report option

Is there some kind of report feature/module I can use? Or do you know where i could download more modules?

中長期計劃

priority_queue<Jobs>

  • SS級: 支援多層級/多管理員的管理介面
  • 優先: script.js refactor, 支援多版架構

資料表計劃(仮)

CREATE TABLE `bans` (
  `id` int(10) INTEGER NOT NULL AUTO_INCREMENT,
  `board` VARCHAR(32) DEFAULT NULL,
  `type` VARCHAR(32) NOT NULL,               #word,ip,host,imagehash,country

  `ipstart` INTEGER DEFAULT '0',
  `ipend` INTEGER DEFAULT '0',
  `value` VARCHAR(255) DEFAULT NULL,
  `created` INTEGER NOT NULL,
  `expires` INTEGER DEFAULT NULL,
  
  `creator` INTEGER NOT NULL,
  `reason` TEXT,
  `post` TEXT,
  PRIMARY KEY (`id`),
  KEY `expires` (`expires`),
  KEY `ipstart` (`ipstart`,`ipend`),
  KEY `value` (`value`)
);

CREATE TABLE `boards` (
  `board` varchar(32) NOT NULL PRIMARY KEY,
  `title` VARCHAR(255) NOT NULL,
  `subtitle` VARCHAR(255),
  `imgsize` INTEGER DEFAULT '0' NOT NULL,
  `settings` TEXT,
  PRIMARY KEY (`board`)
);

CREATE TABLE `admin` (

);

CREATE TABLE posts (
    "board" VARCHAR(32) NOT NULL,
    "no" INTEGER  NOT NULL AUTO_INCREMENT,
    PRIMARY KEY ("board", "no"),
    "resto" INTEGER  NOT NULL,
    "bump" TIMESTAMP DEFAULT '0' NOT NULL, #原root
    "time" INTEGER  NOT NULL,
    "md5chksum" VARCHAR(32)  NOT NULL,
    "imghash" VARCHAR(64) NOT NULL,
    "tim" INTEGER  NOT NULL,
    "ext" VARCHAR(4)  NOT NULL,
    "imgw" INTEGER  NOT NULL,
    "imgh" INTEGER  NOT NULL,
    "imgsize" INTEGER NOT NULL, #原本是VARCHAR
    "pwd" VARCHAR(32)  NOT NULL,
    #原本now包含id和other,現在拆開
    "now" VARCHAR(255)  NOT NULL,
    "id" VARCHAR(32) NOT NULL,   
    "other" VARCHAR(255) NOT NULL,
    "name" VARCHAR(255)  NOT NULL,
    "email" VARCHAR(255)  NOT NULL,
    "sub" VARCHAR(255)  NOT NULL,
    "com" TEXT  NOT NULL,
    "ip" VARCHAR(255) NOT NULL,
    "host" VARCHAR(255)  NOT NULL,
    "uuid" VARCHAR(255) NOT NULL,
    "status" VARCHAR(255)  NOT NULL
);
CREATE INDEX ON posts (board, resto);
CREATE INDEX ON posts (board, bump);
CREATE INDEX ON posts (board, time);
CREATE INDEX ON posts (board, resto, no);
CREATE INDEX ON posts (ip);
CREATE INDEX ON posts (uuid);
CREATE INDEX ON posts (imghash);

一些決定(仮)

  • 不解問題

    • 怎麼樣在存regex資料庫找任一個match文字x的regex(禁字,禁host)
    • 在資料庫裡找與數字x hamming distance<=k的record做法(image hash ng)
    • 洗版的判定
    • 怎麼樣讓nosql的資料表,post no按照每版最大值增加
  • [image相關] 刪除file index, 還有 fileio interface

    • index改放資料庫多開一個表就好了?
    • fileio感覺不需要抽象那麼多,要分散儲存基本上mount就搞定
    • 也許加move()函式的抽象化,例如object storage會用到
    • image 的 file_exist 也不需要php判斷, 直接讓user收到404就好了?
    • config要加支援其他domain拿
  • db相關

    • 所有版面放同個table(重大決定)
      • 原因是sql系列普遍都支援composite primary key, 而且同一張表index search比較方便
      • 反過來說nosql就GG了,雖然放個別的table也是GG?
    • 優先sqlite, 再來mysql
    • 其它db也許會放棄或晚點維護
    • 想支援nosql或雲端db 如dynamo/datastore?
      • no的auto increment會是大問題,像google每秒只能有一筆transaction conflict
      • 暫時沒想到其他
  • cache相關

    • 每個thread, 最新posts, 用json存起來
    • 還有template rendering結果
    • cache應該在文章regist 或 del 階段就可以產生了
    • 支援 redis? memcache?
    • config cache: 如版面設定或禁字,禁isp等就output php檔案讓opcache處理?
  • 想納入標準的module

    • admin_enhance
    • ascii art, netabare(spoiler), ... , config 支援preg取代就好了?
    • threadlist, category
    • recaptcha
    • geoip?
    • report
  • 雜項

    • 改用uri? 例如 komica.org/00/123456
    • template class改用其他的
    • 把project分開,例如 nginx設定,admin,www,script 等
    • 同一串(thread view的頁面)就不做分頁了
      • 雖然說跑script大概300~500會是界線,但通常也很少有那麼長的串
    • 多種首頁? 例如category, 正常futaba style, thread list(就table只列標題)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.