diff --git a/README.md b/README.md index 63a5e91..0953b1a 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,7 @@ For more info: http://vmorneau.me/apex-theme-boilerplate/ The application export is included in this repo, as well as the theme export. ## What is this Boilerplate thing? -It's an empty APEX 5 application with basic stuff that any APEX theme needs. No pages or anything, just a few shared components templates and settings turned on. - -## Do I need this? -You probably don't. Building a theme from the ground up is not something you do everyday. I personally find this useful. Might as well share it, right? +It's an empty APEX application with basic stuff that any APEX theme needs. No pages or anything, just a few shared components templates and settings turned on. ## Install @@ -15,16 +12,10 @@ You probably don't. Building a theme from the ground up is not something you do - Import the APEX application ```f14963.sql``` into your workspace. #### Theme Only -- Import the APEX theme ```f14963_theme.sql``` into your existing application. +- Import the APEX theme ```f14963_theme_600.sql``` into your existing application. ## Changelog -#### 2.0 -- Added APEX Front-End Boost support -- Added theme export file -- Added `DEV_ONLY` build option -- Added default container on grid layout -- Changed template names -- Changed application comments +[See complete changelog](changelog.md). -#### 1.0 -- Initial release +## License +MIT © [Vincent Morneau](http://vmorneau.me) diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..79c9014 --- /dev/null +++ b/changelog.md @@ -0,0 +1,17 @@ +## Changelog + +#### 3.0.0 +- Reviewed most boilerplate templates +- Changed APEX Front-End Boost to APEX Nitro +- Changed Font Awesome to Font APEX + +#### 2.0.0 +- Added APEX Front-End Boost support +- Added theme export file +- Added `DEV_ONLY` build option +- Added default container on grid layout +- Changed template names +- Changed application comments + +#### 1.0.0 +- Initial release diff --git a/f14963.sql b/f14963.sql index e6dcbd3..1e7b071 100644 --- a/f14963.sql +++ b/f14963.sql @@ -5,42 +5,41 @@ whenever sqlerror exit sql.sqlcode rollback -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle user --- APEX_050000 or as the owner (parsing schema) of the application. +-- APEX_050100 or as the owner (parsing schema) of the application. -- -- NOTE: Calls to apex_application_install override the defaults below. -- -------------------------------------------------------------------------------- begin wwv_flow_api.import_begin ( - p_version_yyyy_mm_dd=>'2013.01.01' -,p_release=>'5.0.3.00.03' -,p_default_workspace_id=>50654249616769752 -,p_default_application_id=>14963 -,p_default_owner=>'APEX_VMORNEAU' + p_version_yyyy_mm_dd=>'2016.08.24' +,p_release=>'5.1.0.00.45' +,p_default_workspace_id=>1871301519555315 +,p_default_application_id=>123 +,p_default_owner=>'OOS_USER' ); end; / prompt --application/set_environment -prompt APPLICATION 14963 - Theme Boilerplate +prompt APPLICATION 123 - Theme Boilerplate -- -- Application Export: --- Application: 14963 +-- Application: 123 -- Name: Theme Boilerplate --- Date and Time: 00:33 Tuesday January 26, 2016 --- Exported By: VINCENT.MORNEAU@GMAIL.COM +-- Date and Time: 17:29 Tuesday June 20, 2017 +-- Exported By: OOS_USER -- Flashback: 0 -- Export Type: Application Export --- Version: 5.0.3.00.03 --- Instance ID: 63113759365424 +-- Version: 5.1.0.00.45 +-- Instance ID: 230182471520822 -- -- Application Statistics: -- Pages: 1 -- Shared Components: -- Logic: --- Items: 1 --- Processes: 2 +-- Processes: 1 -- Build Options: 1 -- Navigation: -- Lists: 2 @@ -50,7 +49,7 @@ prompt APPLICATION 14963 - Theme Boilerplate -- User Interface: -- Themes: 1 -- Templates: --- Page: 2 +-- Page: 1 -- Region: 1 -- Label: 1 -- List: 1 @@ -61,7 +60,7 @@ prompt APPLICATION 14963 - Theme Boilerplate -- Report: 2 -- Globalization: -- Reports: --- Supporting Objects: Included +-- Supporting Objects: Excluded prompt --application/delete_application begin @@ -77,10 +76,10 @@ prompt --application/create_application begin wwv_flow_api.create_flow( p_id=>wwv_flow.g_flow_id -,p_display_id=>nvl(wwv_flow_application_install.get_application_id,14963) -,p_owner=>nvl(wwv_flow_application_install.get_schema,'APEX_VMORNEAU') +,p_display_id=>nvl(wwv_flow_application_install.get_application_id,123) +,p_owner=>nvl(wwv_flow_application_install.get_schema,'OOS_USER') ,p_name=>nvl(wwv_flow_application_install.get_application_name,'Theme Boilerplate') -,p_alias=>nvl(wwv_flow_application_install.get_application_alias,'14963') +,p_alias=>nvl(wwv_flow_application_install.get_application_alias,'123') ,p_page_view_logging=>'YES' ,p_page_protection_enabled_y_n=>'N' ,p_checksum_salt=>'2EF51444DD573C61805687582DBA41A50C9B6F3E0E729BBA5361E6D3771F386B' @@ -88,14 +87,15 @@ wwv_flow_api.create_flow( ,p_compatibility_mode=>'5.0' ,p_flow_language=>'en' ,p_flow_language_derived_from=>'FLOW_PRIMARY_LANGUAGE' +,p_direction_right_to_left=>'N' ,p_flow_image_prefix => nvl(wwv_flow_application_install.get_image_prefix,'') ,p_authentication=>'PLUGIN' -,p_authentication_id=>wwv_flow_api.id(7009057759871299269) +,p_authentication_id=>wwv_flow_api.id(7030459021455915295) ,p_application_tab_set=>0 ,p_logo_image=>'TEXT:Theme Boilerplate' ,p_public_user=>'APEX_PUBLIC_USER' ,p_proxy_server=> nvl(wwv_flow_application_install.get_proxy,'') -,p_flow_version=>'1.1' +,p_flow_version=>'v3.0.0' ,p_flow_status=>'AVAILABLE_W_EDIT_LINK' ,p_flow_unavailable_text=>'This application is currently unavailable at this time.' ,p_exact_substitutions_only=>'Y' @@ -107,8 +107,8 @@ wwv_flow_api.create_flow( ,p_csv_encoding=>'Y' ,p_auto_time_zone=>'N' ,p_default_error_display_loc=>'INLINE_IN_NOTIFICATION' -,p_last_updated_by=>'VINCENT.MORNEAU@GMAIL.COM' -,p_last_upd_yyyymmddhh24miss=>'20160126003231' +,p_last_updated_by=>'OOS_USER' +,p_last_upd_yyyymmddhh24miss=>'20170620171946' ,p_file_prefix => nvl(wwv_flow_application_install.get_static_app_file_prefix,'') ,p_files_version=>482 ,p_ui_type_name => null @@ -118,50 +118,50 @@ end; prompt --application/shared_components/navigation/lists begin wwv_flow_api.create_list( - p_id=>wwv_flow_api.id(7009628588599786487) + p_id=>wwv_flow_api.id(7031029850184402513) ,p_name=>'Navigation Menu' ,p_list_status=>'PUBLIC' ); wwv_flow_api.create_list_item( - p_id=>wwv_flow_api.id(7009629070751786495) + p_id=>wwv_flow_api.id(7031030332336402521) ,p_list_item_display_sequence=>10 ,p_list_item_link_text=>'Option 1' ,p_list_item_link_target=>'#' ,p_list_item_current_type=>'TARGET_PAGE' ); wwv_flow_api.create_list_item( - p_id=>wwv_flow_api.id(7009629365509786495) + p_id=>wwv_flow_api.id(7031030627094402521) ,p_list_item_display_sequence=>20 ,p_list_item_link_text=>'Option 2' ,p_list_item_link_target=>'#' ,p_list_item_current_type=>'TARGET_PAGE' ); wwv_flow_api.create_list_item( - p_id=>wwv_flow_api.id(7009629662049786496) + p_id=>wwv_flow_api.id(7031030923634402522) ,p_list_item_display_sequence=>30 ,p_list_item_link_text=>'Option 3' ,p_list_item_link_target=>'#' ,p_list_item_current_type=>'TARGET_PAGE' ); wwv_flow_api.create_list( - p_id=>wwv_flow_api.id(7010226572448775543) + p_id=>wwv_flow_api.id(7031627834033391569) ,p_name=>'Navigation Bar' ,p_list_status=>'PUBLIC' ); wwv_flow_api.create_list_item( - p_id=>wwv_flow_api.id(7010226775408775544) + p_id=>wwv_flow_api.id(7031628036993391570) ,p_list_item_display_sequence=>10 ,p_list_item_link_text=>'Option 1' ,p_list_item_link_target=>'#' ); wwv_flow_api.create_list_item( - p_id=>wwv_flow_api.id(7010227060538775547) + p_id=>wwv_flow_api.id(7031628322123391573) ,p_list_item_display_sequence=>20 ,p_list_item_link_text=>'Option 2' ,p_list_item_link_target=>'#' ); wwv_flow_api.create_list_item( - p_id=>wwv_flow_api.id(7010227389192775547) + p_id=>wwv_flow_api.id(7031628650777391573) ,p_list_item_display_sequence=>30 ,p_list_item_link_text=>'Logout' ,p_list_item_link_target=>'&LOGOUT_URL.' @@ -176,22 +176,40 @@ end; prompt --application/plugin_settings begin wwv_flow_api.create_plugin_setting( - p_id=>wwv_flow_api.id(6848958799851936411) + p_id=>wwv_flow_api.id(21401503371616070) +,p_plugin_type=>'REGION TYPE' +,p_plugin=>'NATIVE_IR' +,p_attribute_01=>'LEGACY' +); +wwv_flow_api.create_plugin_setting( + p_id=>wwv_flow_api.id(21401945485616070) +,p_plugin_type=>'REGION TYPE' +,p_plugin=>'NATIVE_IG' +); +wwv_flow_api.create_plugin_setting( + p_id=>wwv_flow_api.id(21402074226616070) +,p_plugin_type=>'ITEM TYPE' +,p_plugin=>'NATIVE_COLOR_PICKER' +,p_attribute_01=>'classic' +); +wwv_flow_api.create_plugin_setting( + p_id=>wwv_flow_api.id(6870360061436552437) ,p_plugin_type=>'REGION TYPE' ,p_plugin=>'NATIVE_CSS_CALENDAR' ); wwv_flow_api.create_plugin_setting( - p_id=>wwv_flow_api.id(6848958872431936411) + p_id=>wwv_flow_api.id(6870360134016552437) ,p_plugin_type=>'REGION TYPE' ,p_plugin=>'NATIVE_DISPLAY_SELECTOR' ,p_attribute_01=>'N' ); wwv_flow_api.create_plugin_setting( - p_id=>wwv_flow_api.id(7009046665301299239) + p_id=>wwv_flow_api.id(7030447926885915265) ,p_plugin_type=>'ITEM TYPE' ,p_plugin=>'NATIVE_YES_NO' ,p_attribute_01=>'Y' ,p_attribute_03=>'N' +,p_attribute_05=>'SELECT_LIST' ); end; / @@ -208,42 +226,32 @@ end; prompt --application/shared_components/logic/application_processes begin wwv_flow_api.create_flow_process( - p_id=>wwv_flow_api.id(23488269024415725377) + p_id=>wwv_flow_api.id(23509670286000341403) ,p_process_sequence=>-999 -,p_process_point=>'ON_NEW_INSTANCE' +,p_process_point=>'BEFORE_HEADER' ,p_process_type=>'NATIVE_PLSQL' -,p_process_name=>'OOS APEX Front-End Boost (Dev)' -,p_process_sql_clob=>wwv_flow_utilities.join(wwv_flow_t_varchar2( +,p_process_name=>'APEX Nitro' +,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2( 'declare', -' l_cookie owa_cookie.cookie;', +' l_cookie owa_cookie.cookie;', 'begin', -' l_cookie := owa_cookie.get(''oos-apex-frontend-boost-app-images'');', -' if l_cookie.vals.count > 0 then', -' :G_APP_IMAGES := l_cookie.vals(1);', -' else', -' :G_APP_IMAGES := :APP_IMAGES;', -' end if;', +' l_cookie := owa_cookie.get(''oos-apex-nitro'');', +'', +' if l_cookie.vals.count > 0 then', +' -- Use one of the following depending on your files location', +' apex_application.g_flow_images := l_cookie.vals(1);', +' -- apex_application.g_company_images := l_cookie.vals(1);', +' -- apex_application.g_theme_file_prefix := l_cookie.vals(1);', +' -- :G_APP_IMAGES := l_cookie.vals(1);', +' end if;', 'end;')) -,p_required_patch=>wwv_flow_api.id(18522628038371573914) -); -wwv_flow_api.create_flow_process( - p_id=>wwv_flow_api.id(23488416316828134042) -,p_process_sequence=>-999 -,p_process_point=>'ON_NEW_INSTANCE' -,p_process_type=>'NATIVE_PLSQL' -,p_process_name=>'OOS APEX Front-End Boost (Not Dev)' -,p_process_sql_clob=>':G_APP_IMAGES := :APP_IMAGES;' -,p_required_patch=>-wwv_flow_api.id(18522628038371573914) +,p_required_patch=>wwv_flow_api.id(18544029299956189940) ); end; / prompt --application/shared_components/logic/application_items begin -wwv_flow_api.create_flow_item( - p_id=>wwv_flow_api.id(23487938436612651912) -,p_name=>'G_APP_IMAGES' -,p_protection_level=>'I' -); +null; end; / prompt --application/shared_components/logic/application_computations @@ -276,15 +284,10 @@ begin null; end; / -prompt --application/comments -begin -null; -end; -/ prompt --application/shared_components/navigation/breadcrumbs/breadcrumb begin wwv_flow_api.create_menu( - p_id=>wwv_flow_api.id(7009058873932299274) + p_id=>wwv_flow_api.id(7030460135516915300) ,p_name=>' Breadcrumb' ); end; @@ -292,182 +295,91 @@ end; prompt --application/shared_components/user_interface/templates/page begin wwv_flow_api.create_template( - p_id=>wwv_flow_api.id(1898031717988858628) -,p_theme_id=>102 -,p_name=>'Modal' -,p_is_popup=>true -,p_header_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2( -'', -'
', -'