Warning: session_start(): open(/var/lib/php/sessions/sess_4ag8551gj4orl5cj3hqgg3cgai, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
concept ItemPage {
S globalID = aGlobalID();
S title, imageID;
long created, occurred;
L paragraphs = listInConcept(this);
}
static JTextPane textPane;
p-subst {
setConsoleInputFontSize(20);
centerConsoleInput();
centerBottomConsole();
db();
bot("Show Item Page.");
focusConsole();
}
static bool showItemPage(S _word) {
new ItemPage p;
fS word = trim(_word);
if (empty(word)) false;
fS text = word + "\n\n";
cset(p, title := word);
swing {
JFrame f = getFrame(textPane);
frameToFront(showFrame(word, textPane = jcenteredtextpane(text, style_bold(style_fontSize(24))), f));
textPane.setEditable(false);
focusConsole();
thread {
BufferedImage img = quickVisualize(word)
addImageToTextPane(textPane, img);
cset(p, imageID := "quickvis/" + urlencode(quickVisualize_preprocess(word)) + "/" + md5OfBufferedImage(img));
}
}
true;
}
answer {
if (showItemPage(s)) ret "OK";
}