OSDN Git Service

newslash/newslash.git
7 years agojs: add nsUtil object to base.js
hylom [Fri, 21 Apr 2017 14:47:08 +0000 (23:47 +0900)]
js: add nsUtil object to base.js

7 years agotemplate: use /static/js/siteconfig.js
hylom [Fri, 21 Apr 2017 13:10:57 +0000 (22:10 +0900)]
template: use /static/js/siteconfig.js

7 years agoPlugin::TT2Renderer: now config variables available in template rendered by render()
hylom [Fri, 21 Apr 2017 13:09:22 +0000 (22:09 +0900)]
Plugin::TT2Renderer: now config variables available in template rendered by render()

7 years agotemplate: rename core_js.html.tt2 to js_vars.html.tt2
hylom [Fri, 21 Apr 2017 13:08:38 +0000 (22:08 +0900)]
template: rename core_js.html.tt2 to js_vars.html.tt2

7 years agoWeb.pm: generate /static/js/siteconfig.js in startup
hylom [Fri, 21 Apr 2017 12:46:54 +0000 (21:46 +0900)]
Web.pm: generate /static/js/siteconfig.js in startup

7 years agoPlugin::QuasiStaticContent: add add_content()
hylom [Fri, 21 Apr 2017 12:46:31 +0000 (21:46 +0900)]
Plugin::QuasiStaticContent: add add_content()

7 years agoPlugin::TT2Renderer: add public render() method
hylom [Fri, 21 Apr 2017 12:45:27 +0000 (21:45 +0900)]
Plugin::TT2Renderer: add public render() method

7 years agoModel: add Histories to record edit histories
hylom [Thu, 20 Apr 2017 12:38:10 +0000 (21:38 +0900)]
Model: add Histories to record edit histories

7 years agojs: add article-item2.js for new <article-item> tag
hylom [Thu, 20 Apr 2017 12:37:30 +0000 (21:37 +0900)]
js: add article-item2.js for new <article-item> tag

7 years agoWeb::Controller: change some return values in API::Submission and Admin::Story
hylom [Thu, 20 Apr 2017 12:35:23 +0000 (21:35 +0900)]
Web::Controller: change some return values in API::Submission and Admin::Story

7 years agoModel::Submissions: add create_draft_text()
hylom [Thu, 20 Apr 2017 12:33:46 +0000 (21:33 +0900)]
Model::Submissions: add create_draft_text()

7 years agoWeb: implement /api/v1/submission
hylom [Wed, 19 Apr 2017 13:59:53 +0000 (22:59 +0900)]
Web: implement /api/v1/submission

7 years agotemplates: fix common/componentes/story_editor to work
hylom [Wed, 19 Apr 2017 10:32:47 +0000 (19:32 +0900)]
templates: fix common/componentes/story_editor to work

7 years agoWeb::Controller::Admin::Story: support 'subid' query parameter
hylom [Wed, 19 Apr 2017 10:27:58 +0000 (19:27 +0900)]
Web::Controller::Admin::Story: support 'subid' query parameter

7 years agoWeb::Controller::Admin::Submissions::list now supported limit and skip parameter
hylom [Tue, 18 Apr 2017 11:42:27 +0000 (20:42 +0900)]
Web::Controller::Admin::Submissions::list now supported limit and skip parameter

7 years agoWeb::Contrroller::Admin::Submissions: /admin/submissions now can show deleted items
hylom [Tue, 18 Apr 2017 11:32:57 +0000 (20:32 +0900)]
Web::Contrroller::Admin::Submissions: /admin/submissions now can show deleted items

7 years agotemplate: fix unmached tags in common/login_dialog
hylom [Tue, 18 Apr 2017 11:31:58 +0000 (20:31 +0900)]
template: fix unmached tags in common/login_dialog

7 years agoPlugin::QuasiStaticContent: fix problem occured when in-memory cache expired
hylom [Tue, 18 Apr 2017 11:28:58 +0000 (20:28 +0900)]
Plugin::QuasiStaticContent: fix problem occured when in-memory cache expired

7 years agoupdate .gitignore
hylom [Tue, 18 Apr 2017 11:28:36 +0000 (20:28 +0900)]
update .gitignore

7 years agocss: fix font path in bootstrap.less
hylom [Tue, 18 Apr 2017 10:39:14 +0000 (19:39 +0900)]
css: fix font path in bootstrap.less

7 years agoPlugin::QuasiStaticContent: now use kvs and cache to store contents
hylom [Thu, 6 Apr 2017 11:29:31 +0000 (20:29 +0900)]
Plugin::QuasiStaticContent: now use kvs and cache to store contents

7 years agoPlugin::TimeLimitedCache: item don't expire when expire is 0
hylom [Thu, 6 Apr 2017 11:28:54 +0000 (20:28 +0900)]
Plugin::TimeLimitedCache: item don't expire when expire is 0

7 years agoPlugins: now unuse ->config->{_Plugins}
hylom [Thu, 6 Apr 2017 10:50:21 +0000 (19:50 +0900)]
Plugins: now unuse ->config->{_Plugins}

7 years agoconfigs: update example file
hylom [Wed, 5 Apr 2017 16:10:42 +0000 (01:10 +0900)]
configs: update example file

7 years agoWeb: use QuasiStaticContent plugin insted of CSSComlile
hylom [Wed, 5 Apr 2017 16:08:39 +0000 (01:08 +0900)]
Web: use QuasiStaticContent plugin insted of CSSComlile

7 years agoPlugin: add QUasiStaticConent.pm
hylom [Wed, 5 Apr 2017 16:06:32 +0000 (01:06 +0900)]
Plugin: add QUasiStaticConent.pm

7 years agoWeb::Controller::Submission: give discussion object to template
hylom [Tue, 4 Apr 2017 15:27:14 +0000 (00:27 +0900)]
Web::Controller::Submission: give discussion object to template

7 years agoModel::Submission: fix _generalize() to return some parameter aliases
hylom [Tue, 4 Apr 2017 15:26:37 +0000 (00:26 +0900)]
Model::Submission: fix _generalize() to return some parameter aliases

7 years agoModel::Discussions: select() now returns discussion kind
hylom [Tue, 4 Apr 2017 15:25:31 +0000 (00:25 +0900)]
Model::Discussions: select() now returns discussion kind

7 years agotemplate: fix to work
hylom [Tue, 4 Apr 2017 15:24:39 +0000 (00:24 +0900)]
template: fix to work

7 years agotemplate: add common/vars
hylom [Tue, 4 Apr 2017 15:23:30 +0000 (00:23 +0900)]
template: add common/vars

7 years agotemplate: fix common/journal directory name
hylom [Tue, 4 Apr 2017 15:23:05 +0000 (00:23 +0900)]
template: fix common/journal directory name

7 years agotemplate: fix submission page to work
hylom [Tue, 4 Apr 2017 13:56:20 +0000 (22:56 +0900)]
template: fix submission page to work

7 years agoWeb: change handler for /api/v1/login
hylom [Tue, 4 Apr 2017 13:24:15 +0000 (22:24 +0900)]
Web: change handler for /api/v1/login

7 years agoWeb::Controller::API::Login: use Plugin::UserAuth::do_login()
hylom [Tue, 4 Apr 2017 13:23:40 +0000 (22:23 +0900)]
Web::Controller::API::Login: use Plugin::UserAuth::do_login()

7 years agoWeb::Controller::Login: rpath need absolute path
hylom [Tue, 4 Apr 2017 13:22:55 +0000 (22:22 +0900)]
Web::Controller::Login: rpath need absolute path

7 years agoWeb::Controller::Login: move some login code to Plugin::UserAuth
hylom [Tue, 4 Apr 2017 13:22:18 +0000 (22:22 +0900)]
Web::Controller::Login: move some login code to Plugin::UserAuth

7 years agotamplates: implement ajax login
hylom [Mon, 3 Apr 2017 13:15:21 +0000 (22:15 +0900)]
tamplates: implement ajax login

7 years agoWeb: add /api/v1/login
hylom [Mon, 3 Apr 2017 13:14:12 +0000 (22:14 +0900)]
Web: add /api/v1/login

7 years agoWeb::Controller::Login: /logout now can take rpath parameter
hylom [Mon, 3 Apr 2017 13:12:48 +0000 (22:12 +0900)]
Web::Controller::Login: /logout now can take rpath parameter

7 years agoWeb::Controller::API::Submission: supress warning message when signature duplicated...
hylom [Fri, 31 Mar 2017 12:17:33 +0000 (21:17 +0900)]
Web::Controller::API::Submission: supress warning message when signature duplicated error

7 years agoModel::Submissions: use Model::Base's rollback()
hylom [Fri, 31 Mar 2017 12:16:33 +0000 (21:16 +0900)]
Model::Submissions: use Model::Base's rollback()

7 years agoModel::Stories: fix warnings
hylom [Fri, 31 Mar 2017 12:16:05 +0000 (21:16 +0900)]
Model::Stories: fix warnings

7 years agot: fix some tests
hylom [Fri, 31 Mar 2017 12:15:34 +0000 (21:15 +0900)]
t: fix some tests

7 years agot: fix to work some tests
hylom [Fri, 31 Mar 2017 11:42:37 +0000 (20:42 +0900)]
t: fix to work some tests

7 years agot: admin_submissions: fix to work
hylom [Fri, 31 Mar 2017 11:41:03 +0000 (20:41 +0900)]
t: admin_submissions: fix to work

7 years agoWeb::Controller::API::Comment: fix warnings
hylom [Fri, 31 Mar 2017 11:40:20 +0000 (20:40 +0900)]
Web::Controller::API::Comment: fix warnings

7 years agoModel::Events: add delete_all()
hylom [Fri, 31 Mar 2017 11:39:46 +0000 (20:39 +0900)]
Model::Events: add delete_all()

7 years agot: remove admin_sidebar.t
hylom [Fri, 31 Mar 2017 11:26:49 +0000 (20:26 +0900)]
t: remove admin_sidebar.t

7 years agot: move admin_sidebar.t tp api/box.t
hylom [Fri, 31 Mar 2017 11:26:36 +0000 (20:26 +0900)]
t: move admin_sidebar.t tp api/box.t

7 years agoUtil::Test: create_admin_user() now take passwd argument
hylom [Fri, 31 Mar 2017 11:15:43 +0000 (20:15 +0900)]
Util::Test: create_admin_user() now take passwd argument

7 years agot: add api/moderation.t
hylom [Fri, 31 Mar 2017 11:11:13 +0000 (20:11 +0900)]
t: add api/moderation.t

7 years agoUtil::Test: create_user can take passwd argument
hylom [Fri, 31 Mar 2017 11:10:39 +0000 (20:10 +0900)]
Util::Test: create_user can take passwd argument

7 years agoModel::Journals: fix warnings
hylom [Fri, 31 Mar 2017 11:10:02 +0000 (20:10 +0900)]
Model::Journals: fix warnings

7 years agot: remove api.t
hylom [Fri, 31 Mar 2017 11:09:17 +0000 (20:09 +0900)]
t: remove api.t

7 years agot: devide api.t to api/{comment|story|submission}.t
hylom [Fri, 31 Mar 2017 11:08:32 +0000 (20:08 +0900)]
t: devide api.t to api/{comment|story|submission}.t

7 years agot: fix warnings in models/events.t
hylom [Fri, 31 Mar 2017 10:37:07 +0000 (19:37 +0900)]
t: fix warnings in models/events.t

7 years agot: delete models/people.t
hylom [Fri, 31 Mar 2017 10:32:45 +0000 (19:32 +0900)]
t: delete models/people.t

7 years agot: merge models/people.t to models/relations.t
hylom [Fri, 31 Mar 2017 10:32:28 +0000 (19:32 +0900)]
t: merge models/people.t to models/relations.t

7 years agot: add relations.t, stories.t, submissions.t to models/
hylom [Thu, 30 Mar 2017 13:04:07 +0000 (22:04 +0900)]
t: add relations.t, stories.t, submissions.t to models/

7 years agot: rewrite model/users.t
hylom [Thu, 30 Mar 2017 13:03:30 +0000 (22:03 +0900)]
t: rewrite model/users.t

7 years agoModel::Users: create random password when password not given in create()
hylom [Thu, 30 Mar 2017 13:02:53 +0000 (22:02 +0900)]
Model::Users: create random password when password not given in create()

7 years agoModel::Submissions: add fullhost_to_domain() and hard_delete()
hylom [Thu, 30 Mar 2017 13:02:12 +0000 (22:02 +0900)]
Model::Submissions: add fullhost_to_domain() and hard_delete()

7 years agoModel::Submissions: fix update() to work correctly
hylom [Thu, 30 Mar 2017 13:01:44 +0000 (22:01 +0900)]
Model::Submissions: fix update() to work correctly

7 years agoModel::Submissions: now use submission_id and id parameter instead of subid in select()
hylom [Thu, 30 Mar 2017 13:00:27 +0000 (22:00 +0900)]
Model::Submissions: now use submission_id and id parameter instead of subid in select()

7 years agot: rewrite models/moderations.t, models/metamoderations.t
hylom [Thu, 30 Mar 2017 12:11:21 +0000 (21:11 +0900)]
t: rewrite models/moderations.t, models/metamoderations.t

7 years agoUtil::Test: add create_admin_user()
hylom [Thu, 30 Mar 2017 12:08:24 +0000 (21:08 +0900)]
Util::Test: add create_admin_user()

7 years agoModel::Moderations: rollback when error occured in create()
hylom [Thu, 30 Mar 2017 12:08:01 +0000 (21:08 +0900)]
Model::Moderations: rollback when error occured in create()

7 years agoModel::Comments: fix select() occurs error when multiple condition given
hylom [Thu, 30 Mar 2017 12:06:44 +0000 (21:06 +0900)]
Model::Comments: fix select() occurs error when multiple condition given

7 years agoModel::Base: fix rollback() clear errors
hylom [Thu, 30 Mar 2017 12:05:38 +0000 (21:05 +0900)]
Model::Base: fix rollback() clear errors

7 years agoUtil::Test: add create_users(), create_comment(), create_comments(), get_anonymous_user()
hylom [Wed, 29 Mar 2017 10:53:39 +0000 (19:53 +0900)]
Util::Test: add create_users(), create_comment(), create_comments(), get_anonymous_user()

7 years agot: fix models/messages.t
hylom [Wed, 29 Mar 2017 10:22:53 +0000 (19:22 +0900)]
t: fix models/messages.t

7 years agot: update models/journals.t test to remove diag()
hylom [Wed, 29 Mar 2017 10:22:27 +0000 (19:22 +0900)]
t: update models/journals.t test to remove diag()

7 years agot: add models/discussions/t
hylom [Wed, 29 Mar 2017 10:12:31 +0000 (19:12 +0900)]
t: add models/discussions/t

7 years agoModel::Discussions: fix update() and now use 'discussion_id' parameter instead of...
hylom [Wed, 29 Mar 2017 10:12:13 +0000 (19:12 +0900)]
Model::Discussions: fix update() and now use 'discussion_id' parameter instead of 'id' in update()

7 years agoutils/db_scripts: add sqls
hylom [Tue, 28 Mar 2017 16:07:28 +0000 (01:07 +0900)]
utils/db_scripts: add sqls

7 years agot: models/comment.t: fix to work
hylom [Tue, 28 Mar 2017 16:06:21 +0000 (01:06 +0900)]
t: models/comment.t: fix to work

7 years agot: api/relation: now use Newslash::Util::Test
hylom [Tue, 28 Mar 2017 16:05:50 +0000 (01:05 +0900)]
t: api/relation: now use Newslash::Util::Test

7 years agoUtil::Test: fix create_user to work
hylom [Tue, 28 Mar 2017 16:04:52 +0000 (01:04 +0900)]
Util::Test: fix create_user to work

7 years agoModel::Users: create() now take passwd argument, and change error handling with set_e...
hylom [Tue, 28 Mar 2017 16:02:55 +0000 (01:02 +0900)]
Model::Users: create() now take passwd argument, and change error handling with set_error() in create()

7 years agoModel::Users: rename random_password() to generate_random_password()
hylom [Tue, 28 Mar 2017 16:01:37 +0000 (01:01 +0900)]
Model::Users: rename random_password() to generate_random_password()

7 years agoModel::Stories: now works hard_delete()
hylom [Tue, 28 Mar 2017 16:00:35 +0000 (01:00 +0900)]
Model::Stories: now works hard_delete()

7 years agoModel::Stories: fix some warnings and add alias story->{discussiond_id}
hylom [Tue, 28 Mar 2017 16:00:14 +0000 (01:00 +0900)]
Model::Stories: fix some warnings and add alias story->{discussiond_id}

7 years agoModel::Stories: now create() returns stoid
hylom [Tue, 28 Mar 2017 15:58:13 +0000 (00:58 +0900)]
Model::Stories: now create() returns stoid

7 years agoModel::Stories: add error checks and fix warning to create()
hylom [Tue, 28 Mar 2017 15:56:46 +0000 (00:56 +0900)]
Model::Stories: add error checks and fix warning to create()

7 years agoModel::SlashDB: createStory() returns (sid, stoid) when array context
hylom [Tue, 28 Mar 2017 15:54:21 +0000 (00:54 +0900)]
Model::SlashDB: createStory() returns (sid, stoid) when array context

7 years agoModel::Comments: fix update() cannot work when $param->{points} is SCALAR
hylom [Tue, 28 Mar 2017 15:53:26 +0000 (00:53 +0900)]
Model::Comments: fix update() cannot work when $param->{points} is SCALAR

7 years agoModel::Comments: add hard_delete()
hylom [Tue, 28 Mar 2017 15:51:59 +0000 (00:51 +0900)]
Model::Comments: add hard_delete()

7 years agoModel::Boxes: select() now can take name parameter
hylom [Fri, 24 Mar 2017 11:02:55 +0000 (20:02 +0900)]
Model::Boxes: select() now can take name parameter

7 years agoUtil: create Util::Test test utilities
hylom [Fri, 24 Mar 2017 11:02:09 +0000 (20:02 +0900)]
Util: create Util::Test test utilities

7 years agot: add models/boxes.t
hylom [Fri, 24 Mar 2017 10:42:00 +0000 (19:42 +0900)]
t: add models/boxes.t

7 years agoModel::Comments: fix a problem select() can returns up to 10 results
hylom [Thu, 23 Mar 2017 12:51:32 +0000 (21:51 +0900)]
Model::Comments: fix a problem select() can returns up to 10 results

7 years agoWeb: implement /comments, /submissions
hylom [Thu, 23 Mar 2017 12:40:36 +0000 (21:40 +0900)]
Web: implement /comments, /submissions

7 years agoModel::Submissions: now select() can use for latest submissions
hylom [Thu, 23 Mar 2017 12:40:04 +0000 (21:40 +0900)]
Model::Submissions: now select() can use for latest submissions

7 years agoModel::Comments: fix limit/orderby order in select() and add fallback for limit value
hylom [Thu, 23 Mar 2017 12:36:51 +0000 (21:36 +0900)]
Model::Comments: fix limit/orderby order in select() and add fallback for limit value

7 years agoModel::Comments: select() now can take 'order_by' parameter
hylom [Thu, 23 Mar 2017 12:25:26 +0000 (21:25 +0900)]
Model::Comments: select() now can take 'order_by' parameter

7 years agoModel::Base: now build_orderby_clause() supports alias
hylom [Thu, 23 Mar 2017 12:24:37 +0000 (21:24 +0900)]
Model::Base: now build_orderby_clause() supports alias

7 years agoModel::journals: fix SQL in latest()
hylom [Thu, 23 Mar 2017 11:47:19 +0000 (20:47 +0900)]
Model::journals: fix SQL in latest()

7 years agoWeb: implement /recent
hylom [Thu, 23 Mar 2017 11:38:35 +0000 (20:38 +0900)]
Web: implement /recent

7 years agoModel::Timeline: add _select_global()
hylom [Thu, 23 Mar 2017 11:38:13 +0000 (20:38 +0900)]
Model::Timeline: add _select_global()