Skip to content

Commit

Permalink
Main 2.0 commit
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
vincentmorneau committed Feb 8, 2016
1 parent d27cf66 commit e416687
Show file tree
Hide file tree
Showing 4 changed files with 621 additions and 46 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 APEX Theme Boilerplate
Copyright (c) 2016 Vincent Morneau

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
32 changes: 24 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
#APEX Theme Boilerplate

# APEX Theme Boilerplate
For more info: http://vmorneau.me/apex-theme-boilerplate/

The application export is included in this repo.
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.
## 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?
## 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?

###Automatic Install
- Import the APEX application ```f14963.sql``` in your workspace.
## Install

#### Application
- Import the APEX application ```f14963.sql``` into your workspace.

#### Theme Only
- Import the APEX theme ```f14963_theme.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

#### 1.0
- Initial release
109 changes: 73 additions & 36 deletions f14963.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ whenever sqlerror exit sql.sqlcode rollback
begin
wwv_flow_api.import_begin (
p_version_yyyy_mm_dd=>'2013.01.01'
,p_release=>'5.0.1.00.06'
,p_release=>'5.0.3.00.03'
,p_default_workspace_id=>50654249616769752
,p_default_application_id=>14963
,p_default_owner=>'APEX_VMORNEAU'
Expand All @@ -27,18 +27,21 @@ prompt APPLICATION 14963 - Theme Boilerplate
-- Application Export:
-- Application: 14963
-- Name: Theme Boilerplate
-- Date and Time: 12:20 Wednesday August 19, 2015
-- Date and Time: 00:33 Tuesday January 26, 2016
-- Exported By: [email protected]
-- Flashback: 0
-- Export Type: Application Export
-- Version: 5.0.1.00.06
-- Version: 5.0.3.00.03
-- Instance ID: 63113759365424
--

-- Application Statistics:
-- Pages: 1
-- Shared Components:
-- Logic:
-- Items: 1
-- Processes: 2
-- Build Options: 1
-- Navigation:
-- Lists: 2
-- Breadcrumbs: 1
Expand Down Expand Up @@ -92,7 +95,7 @@ wwv_flow_api.create_flow(
,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.0'
,p_flow_version=>'1.1'
,p_flow_status=>'AVAILABLE_W_EDIT_LINK'
,p_flow_unavailable_text=>'This application is currently unavailable at this time.'
,p_exact_substitutions_only=>'Y'
Expand All @@ -104,10 +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_substitution_string_01=>'PATH'
,p_substitution_value_01=>'https://url-to-your-files.com'
,p_last_updated_by=>'[email protected]'
,p_last_upd_yyyymmddhh24miss=>'20150819121417'
,p_last_upd_yyyymmddhh24miss=>'20160126003231'
,p_file_prefix => nvl(wwv_flow_application_install.get_static_app_file_prefix,'')
,p_files_version=>482
,p_ui_type_name => null
Expand Down Expand Up @@ -206,12 +207,43 @@ end;
/
prompt --application/shared_components/logic/application_processes
begin
null;
wwv_flow_api.create_flow_process(
p_id=>wwv_flow_api.id(23488269024415725377)
,p_process_sequence=>-999
,p_process_point=>'ON_NEW_INSTANCE'
,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(
'declare',
' 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;',
'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)
);
end;
/
prompt --application/shared_components/logic/application_items
begin
null;
wwv_flow_api.create_flow_item(
p_id=>wwv_flow_api.id(23487938436612651912)
,p_name=>'G_APP_IMAGES'
,p_protection_level=>'I'
);
end;
/
prompt --application/shared_components/logic/application_computations
Expand Down Expand Up @@ -262,7 +294,7 @@ begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1898031717988858628)
,p_theme_id=>102
,p_name=>'Page - Modal'
,p_name=>'Modal'
,p_is_popup=>true
,p_header_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
Expand All @@ -275,17 +307,17 @@ wwv_flow_api.create_template(
' <meta name="description" content="APEX Theme Boilerplate">',
' <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>',
' ',
' <!-- Mandatory APEX CSS Stuff -->',
' <!-- Mandatory APEX CSS -->',
' #HEAD#',
' #APEX_CSS#',
' ',
' <!-- Your CSS -->',
' <!-- Your Theme CSS -->',
' #THEME_CSS#',
' #THEME_STYLE_CSS#',
' #TEMPLATE_CSS#',
' #APPLICATION_CSS#',
' ',
' <!-- Additionnal CSS (that needs a good reason to use) -->',
' <!-- Additionnal CSS -->',
' #TEMPLATE_CSS#',
' #PAGE_CSS#',
'</head>',
'<body class="#PAGE_CSS_CLASSES#" #ONLOAD#>'))
Expand All @@ -305,19 +337,19 @@ wwv_flow_api.create_template(
'',
'#FORM_CLOSE#'))
,p_footer_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
'<!-- Mandatory APEX JS Stuff -->',
'<!-- Mandatory APEX JS -->',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'',
'<!-- Your JS -->',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
' ',
'<!-- Additionnal JS (that needs a good reason to use) -->',
'<!-- Additionnal JS -->',
'#TEMPLATE_JAVASCRIPT#',
'#PAGE_JAVASCRIPT#',
'',
'<!-- Generated Stuff -->',
'<!-- Generated code (plugins, etc.) -->',
'#GENERATED_CSS#',
'#GENERATED_JAVASCRIPT#',
'</body>',
Expand All @@ -333,7 +365,7 @@ wwv_flow_api.create_template(
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
'<div>',
'<div class="container">',
' #ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
Expand All @@ -360,7 +392,7 @@ wwv_flow_api.create_page_tmpl_display_point(
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1898033083328858856)
,p_theme_id=>102
,p_name=>'Page - Standard'
,p_name=>'Standard'
,p_is_popup=>false
,p_header_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
Expand All @@ -373,17 +405,17 @@ wwv_flow_api.create_template(
' <meta name="description" content="APEX Theme Boilerplate">',
' <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>',
' ',
' <!-- Mandatory APEX CSS Stuff -->',
' <!-- Mandatory APEX CSS -->',
' #HEAD#',
' #APEX_CSS#',
' ',
' <!-- Your CSS -->',
' #THEME_CSS#',
' #THEME_STYLE_CSS#',
' #TEMPLATE_CSS#',
' #APPLICATION_CSS#',
' ',
' <!-- Additionnal CSS (that needs a good reason to use) -->',
' <!-- Additionnal CSS -->',
' #TEMPLATE_CSS#',
' #PAGE_CSS#',
'</head>',
'<body id="#PAGE_STATIC_ID#" class="#PAGE_CSS_CLASSES#" #ONLOAD#>'))
Expand Down Expand Up @@ -422,13 +454,13 @@ wwv_flow_api.create_template(
'',
'<!-- Your JS -->',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
' ',
'<!-- Additionnal JS that needs a good reason to use -->',
'<!-- Additionnal JS -->',
'#TEMPLATE_JAVASCRIPT#',
'#PAGE_JAVASCRIPT#',
'',
'<!-- Generated Stuff -->',
'<!-- Generated Code (plugins, etc.) -->',
'#GENERATED_CSS#',
'#GENERATED_JAVASCRIPT#',
'</body>',
Expand All @@ -444,7 +476,7 @@ wwv_flow_api.create_template(
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
'<div>',
'<div class="container">',
' #ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
Expand Down Expand Up @@ -478,7 +510,7 @@ prompt --application/shared_components/user_interface/templates/button
begin
wwv_flow_api.create_button_templates(
p_id=>wwv_flow_api.id(1898205400757951469)
,p_template_name=>'Button - Standard'
,p_template_name=>'Standard'
,p_template=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
'<a href="#LINK#" id="#BUTTON_ID#" class="#BUTTON_CSS_CLASSES#" #BUTTON_ATTRIBUTES#><i class="#ICON_CSS_CLASSES#"></i>#LABEL#</a>',
''))
Expand All @@ -499,7 +531,7 @@ wwv_flow_api.create_plug_template(
' #BODY# ',
' #CREATE2#',
'</div>'))
,p_page_plug_template_name=>'Region - Standard'
,p_page_plug_template_name=>'Standard'
,p_plug_table_bgcolor=>'#ffffff'
,p_theme_id=>102
,p_theme_class_id=>21
Expand All @@ -516,7 +548,7 @@ wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1898096412288884946)
,p_list_template_current=>'<li class="active"><a href="#LINK#">#TEXT#</a></li>'
,p_list_template_noncurrent=>'<li><a href="#LINK#">#TEXT#</a></li>'
,p_list_template_name=>'List - Standard'
,p_list_template_name=>'Standard'
,p_theme_id=>102
,p_theme_class_id=>9
,p_list_template_before_rows=>' <ul id="#LIST_ID#" class="#COMPONENT_CSS_CLASSES#">'
Expand All @@ -528,7 +560,7 @@ prompt --application/shared_components/user_interface/templates/report
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1898046428474862479)
,p_row_template_name=>'Report - Standard - Column'
,p_row_template_name=>'Standard - Column'
,p_row_template1=>'<td headers="#COLUMN_HEADER_NAME#">#COLUMN_VALUE#</td>'
,p_row_template_before_rows=>'<table id="report_#REGION_STATIC_ID#" class="#COMPONENT_CSS_CLASSES#">'
,p_row_template_after_rows=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
Expand Down Expand Up @@ -568,7 +600,7 @@ exception when others then null;
end;
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1898072618661875621)
,p_row_template_name=>'Report - Standard - Row'
,p_row_template_name=>'Standard - Row'
,p_row_template1=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
'<div class="#COMPONENT_CSS_CLASSES#">',
' #1##2##3##4##5#',
Expand All @@ -589,7 +621,7 @@ prompt --application/shared_components/user_interface/templates/label
begin
wwv_flow_api.create_field_template(
p_id=>wwv_flow_api.id(1898094742951880302)
,p_template_name=>'Label - Standard'
,p_template_name=>'Standard'
,p_template_body1=>'<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#">'
,p_template_body2=>'</label>'
,p_before_item=>'<div class="#ITEM_CSS_CLASSES#">'
Expand All @@ -603,7 +635,7 @@ prompt --application/shared_components/user_interface/templates/breadcrumb
begin
wwv_flow_api.create_menu_template(
p_id=>wwv_flow_api.id(1898208397741960125)
,p_name=>'Breadcrumb - Standard'
,p_name=>'Standard'
,p_before_first=>'<div class="#COMPONENT_CSS_CLASSES#">'
,p_current_page_option=>'#NAME#'
,p_non_current_page_option=>'<a href="#LINK#">#NAME#</a>'
Expand Down Expand Up @@ -631,7 +663,7 @@ prompt --application/shared_components/user_interface/templates/calendar
begin
wwv_flow_api.create_calendar_template(
p_id=>wwv_flow_api.id(1898171735491975398)
,p_cal_template_name=>'Calendar - Standard'
,p_cal_template_name=>'Standard'
,p_day_of_week_format=>'<th>#IDAY#</th>'
,p_month_title_format=>wwv_flow_utilities.join(wwv_flow_t_varchar2(
'<table cellspacing="0" cellpadding="0" border="0" summary="">',
Expand Down Expand Up @@ -847,7 +879,12 @@ end;
/
prompt --application/shared_components/logic/build_options
begin
null;
wwv_flow_api.create_build_option(
p_id=>wwv_flow_api.id(18522628038371573914)
,p_build_option_name=>'DEV_ONLY'
,p_build_option_status=>'EXCLUDE'
,p_default_on_export=>'EXCLUDE'
);
end;
/
prompt --application/shared_components/globalization/language
Expand Down
Loading

0 comments on commit e416687

Please sign in to comment.