mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Cfg: Convert rest of pages
This commit is contained in:
@@ -16,10 +16,15 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.specials; import gplx.*; import gplx.xowa.*;
|
||||
import gplx.xowa.xtns.wbases.specials.*;
|
||||
public class Xoa_special_mgr implements Gfo_invk {
|
||||
private Wdata_itemByTitle_cfg wbase_cfg = new Wdata_itemByTitle_cfg();
|
||||
private Ordered_hash hash = Ordered_hash_.New();
|
||||
public Xoa_special_mgr() {
|
||||
hash.Add(gplx.xowa.xtns.wbases.specials.Wdata_itemByTitle_cfg.Key, new gplx.xowa.xtns.wbases.specials.Wdata_itemByTitle_cfg());
|
||||
hash.Add(Wdata_itemByTitle_cfg.Key, wbase_cfg);
|
||||
}
|
||||
public void Init_by_app(Xoae_app app) {
|
||||
wbase_cfg.Init_by_app(app);
|
||||
}
|
||||
public void Add(String key, Gfo_invk cfg) {hash.Add(key, cfg);}
|
||||
public Gfo_invk Get_or_null(String key) {return (Gfo_invk)hash.Get_by(key);}
|
||||
|
||||
@@ -31,11 +31,10 @@ public class Xow_special_mgr {
|
||||
this.app = wiki.App();
|
||||
hash = Hash_adp_bry.ci_u8(lang.Case_mgr());
|
||||
page_allpages = new Xows_page_allpages(wiki);
|
||||
page_search = new Srch_special_page(wiki);
|
||||
Evt_lang_changed(wiki.Lang());
|
||||
}
|
||||
public Xows_page_allpages Page_allpages() {return page_allpages;} private final Xows_page_allpages page_allpages;
|
||||
public Srch_special_page Page_search() {return page_search;} private final Srch_special_page page_search;
|
||||
public Srch_special_page Page_search() {return page_search;} private final Srch_special_page page_search = new Srch_special_page();
|
||||
public Xou_history_html Page_history() {return page_history;} private final Xou_history_html page_history = new Xou_history_html();
|
||||
public Xoud_history_special Page_history2() {return page_history2;} private final Xoud_history_special page_history2 = new Xoud_history_special();
|
||||
public Nearby_mgr Page_nearby() {return page_nearby;} private final Nearby_mgr page_nearby = new Nearby_mgr();
|
||||
|
||||
@@ -31,7 +31,7 @@ class Xows_cmd__file_check {
|
||||
Fsdb_db_file atr_main = null;
|
||||
try {Write_kv(bfr, "machine.op_sys", Op_sys.Cur().Os_name());} catch (Exception e) {bfr.Add_str_u8(Err_.Message_gplx_full(e));}
|
||||
try {Write_kv(bfr, "app.version", Xoa_app_.Version);} catch (Exception e) {bfr.Add_str_u8(Err_.Message_gplx_full(e));}
|
||||
try {Write_kv(bfr, "cfg_file_retrieve", ((Xoae_app)app).File_mgr().Wmf_mgr().Enabled());} catch (Exception e) {bfr.Add_str_u8(Err_.Message_gplx_full(e));}
|
||||
try {Write_kv(bfr, "cfg_file_retrieve", ((Xowe_wiki)wiki).File_mgr().Cfg_download().Enabled());} catch (Exception e) {bfr.Add_str_u8(Err_.Message_gplx_full(e));}
|
||||
try {Write_kv(bfr, "fsdb.schema_is_1", schema_1);} catch (Exception e) {bfr.Add_str_u8(Err_.Message_gplx_full(e));}
|
||||
try {Write_kv(bfr, "fsdb.mnt_file", wiki.File__fsdb_core().File__mnt_file().Url());} catch (Exception e) {bfr.Add_str_u8(Err_.Message_gplx_full(e));}
|
||||
try {Write_kv(bfr, "fsdb.abc_file", wiki.File__fsdb_core().File__abc_file__at(Fsm_mnt_mgr.Mnt_idx_main).Url());} catch (Exception e) {bfr.Add_str_u8(Err_.Message_gplx_full(e));}
|
||||
|
||||
Reference in New Issue
Block a user