Commit 739110de authored by Ralf Bitter's avatar Ralf Bitter

Merge branch 'release/2.0.0'

parents c2665dce 86ab7b7a
# revIgniter JSONfeed module (v. 1.0.1) # revIgniter JSONfeed module (v. 2.0.0)
This module enables your revIgniter app to publish JSON feeds. This module enables your revIgniter app to publish JSON feeds.
In case you never heard of JSON feed, it is a format similar In case you never heard of JSON feed, it is a format similar
...@@ -100,6 +100,6 @@ For the license terms see the `LICENSE.txt` file. ...@@ -100,6 +100,6 @@ For the license terms see the `LICENSE.txt` file.
### Meta ### Meta
- Version: 1.0.1 - Version: 2.0.0
- Web Site: https://revigniter.com/ - Web Site: https://revigniter.com/
- Author: [Ralf Bitter](mailto:rabit@revigniter.com) - Author: [Ralf Bitter](mailto:rabit@revigniter.com)
\ No newline at end of file
put gAPPPATH & "db/feedjson.sqlite" into sDB["feedjson"]["hostname"] put gRigA["APPPATH"] & "db/feedjson.sqlite" into sDB["feedjson"]["hostname"]
put "" into sDB["feedjson"]["username"] put "" into sDB["feedjson"]["username"]
...@@ -18,7 +18,7 @@ put "" into sDB["feedjson"]["dbRedirectOnError"] ...@@ -18,7 +18,7 @@ put "" into sDB["feedjson"]["dbRedirectOnError"]
put FALSE into sDB["feedjson"]["cacheon"] put FALSE into sDB["feedjson"]["cacheon"]
put gBASEPATH & "database/cache/" into sDB["feedjson"]["cachedir"] put gRigA["BASEPATH"] & "database/cache/" into sDB["feedjson"]["cachedir"]
put "utf8" into sDB["feedjson"]["charset"] put "utf8" into sDB["feedjson"]["charset"]
......
<?lc <?lc
put gBASEPATH into gBASEPATH if gRigA is not an array then
if gBASEPATH is "gBASEPATH" then
put "No direct script access allowed." put "No direct script access allowed."
exit to top exit to top
end if end if
...@@ -27,18 +25,22 @@ end if ...@@ -27,18 +25,22 @@ end if
# #
# 1. Libraries # 1. Libraries
# 2. Stacks # 2. Stacks
# 3. Helper files # 3. Database
# 4. Plugins # 4. Helper files
# 5. Custom config files # 5. Extensions (LiveCode Builder libraries)
# 6. Language files # 6. Custom config files
# 7. Models # 7. Language files
# 8. Models
# #
## ##
global gModuleAutoload
## ##
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# Auto-load Libraries # Auto-load Libraries / Database
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# These are the libraries located in the system/libraries folder, # These are the libraries located in the system/libraries folder,
# in the system/application/libraries folder or in your # in the system/application/libraries folder or in your
...@@ -104,18 +106,23 @@ put sAutoHelper into gModuleAutoload["helper"] ...@@ -104,18 +106,23 @@ put sAutoHelper into gModuleAutoload["helper"]
## ##
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# Auto-load Plugins # Auto-load Extensions
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# Prototype: # Prototype:
# #
# put "footerlinks,jsCalendar,myPlugin" into sAutoPlugins # put "com.livecode.library.json,com.mydomain.library.myextension" into sAutoExtensions
# split sAutoPlugins using comma # split sAutoExtensions using comma
#
# put sAutoExtensions into gModuleAutoload["extension"]
# #
# put sAutoPlugins into gModuleAutoload["plugin"] # NOTE: The array values are the names of the folders including the particular module.lcm file.
# Please follow the naming convention used by LiveCode Ltd. This means such a folder
# name should be composed of a reverse domain, followed by "library" and a library name
# all delimited by a period.
## ##
put "" into sAutoPlugins[1] put "" into sAutoExtensions[1]
put sAutoPlugins into gModuleAutoload["plugin"] put sAutoExtensions into gModuleAutoload["extension"]
## ##
......
<?lc <?lc
put gBASEPATH into gBASEPATH if gRigA is not an array then
if gBASEPATH is "gBASEPATH" then
put "No direct script access allowed." put "No direct script access allowed."
exit to top exit to top
end if end if
......
<?lc <?lc
put gBASEPATH into gBASEPATH if gRigA is not an array then
if gBASEPATH is "gBASEPATH" then
put "No direct script access allowed." put "No direct script access allowed."
exit to top exit to top
end if end if
......
...@@ -5,7 +5,7 @@ put "feedjsonHeaderLink" into gModuleHandlers ...@@ -5,7 +5,7 @@ put "feedjsonHeaderLink" into gModuleHandlers
command feedjsonHeaderLink command feedjsonHeaderLink
# NEEDED TO GENERATE A FEED LINK # NEEDED TO GENERATE A FEED LINK
rigLoadPlugin "feedjsonlinkPi", "feedjson" rigLoadHelper "feedjsonlink", "feedjson"
end feedjsonHeaderLink end feedjsonHeaderLink
......
...@@ -16,7 +16,7 @@ command feedjsoncontainer ...@@ -16,7 +16,7 @@ command feedjsoncontainer
rigLoadHelper tHelpers rigLoadHelper tHelpers
# NEEDED TO GENERATE A FEED LINK # NEEDED TO GENERATE A FEED LINK
rigLoadPlugin "feedjsonlinkPi", "feedjson" rigLoadHelper "feedjsonlink", "feedjson"
# MAKE SURE YOU IMPLEMENTED A DATABASE GROUP "feedjson" IN YOUR database.lc CONFIG FILE! SEE modules/feedjson/config/config.lc # MAKE SURE YOU IMPLEMENTED A DATABASE GROUP "feedjson" IN YOUR database.lc CONFIG FILE! SEE modules/feedjson/config/config.lc
get rigLoadDatabase(rigFetchConfigItem("databaseGroupName", "feedjson")) get rigLoadDatabase(rigFetchConfigItem("databaseGroupName", "feedjson"))
...@@ -37,7 +37,7 @@ end feedjsoncontainer ...@@ -37,7 +37,7 @@ end feedjsoncontainer
command feedjsoncontainerIndex command feedjsoncontainerIndex
# GET ASSETS URI FOR FULL PATH TO SVG FILES USED FOR DECORATION PURPOSES # GET ASSETS URI FOR FULL PATH TO SVG FILES USED FOR DECORATION PURPOSES
put rigBaseURL() into gData["baseURL"] put rigBaseURL() into gData["baseURL"]
put rigFetchConfigItem("assetsLocation") into tAssetsLoc put rigFetchConfigItem("assetsLocation") into tAssetsLoc
......
...@@ -10,7 +10,7 @@ command feedjsonitem ...@@ -10,7 +10,7 @@ command feedjsonitem
rigLoadHelper tHelpers rigLoadHelper tHelpers
# NEEDED TO GENERATE A FEED LINK # NEEDED TO GENERATE A FEED LINK
rigLoadPlugin "feedjsonlinkPi", "feedjson" rigLoadHelper "feedjsonlink", "feedjson"
rigLoadModel "feedjsonmodel", , "feedjson" rigLoadModel "feedjsonmodel", , "feedjson"
......
<?lc script "feedjsonlinkHelper"
put gBASEPATH into gBASEPATH
if gBASEPATH is "gBASEPATH" then
put "No direct script access allowed."
exit to top global gRigA
end if
/*----------------------------------------------------------------------
--| COMMAND libraryStack
--|
--| Author: rabit
--| Version: 1.0
--| Created: 2019-02-18
--| Last Mod: --
--| Requires: --
--|
--| Summary: Run security check.
--|
--| Parameters: --
--|
--| Return: empty
----------------------------------------------------------------------*/
on libraryStack
if (gRigA is not an array) and (the environment is "server") then
put "No direct script access allowed."
exit to top
end if
if the short name of the target <> the short name of me then
pass libraryStack
end if -- if the short name of the target = the short name of me
end libraryStack
...@@ -46,6 +74,6 @@ end getHTMLjsonfeedLink ...@@ -46,6 +74,6 @@ end getHTMLjsonfeedLink
--| END OF feedjsonlinkPi.lc --| END OF feedjsonlinkHelper.livecodescript
--| Location: ./modules/feedjson/plugins/feedjsonlinkPi.lc --| Location: ./modules/feedjson/helpers/feedjsonlinkHelper.livecodescript
---------------------------------------------------------------------- ----------------------------------------------------------------------
\ No newline at end of file
<?lc script "feedjsonmodel"
put gBASEPATH into gBASEPATH
if gBASEPATH is "gBASEPATH" then
put "No direct script access allowed."
exit to top global gRigA
end if
/*----------------------------------------------------------------------
--| COMMAND libraryStack
--|
--| Author: rabit
--| Version: 1.0
--| Created: 2019-02-18
--| Last Mod: --
--| Requires: --
--|
--| Summary: Run security check.
--|
--| Parameters: --
--|
--| Return: empty
----------------------------------------------------------------------*/
on libraryStack
if (gRigA is not an array) and (the environment is "server") then
put "No direct script access allowed."
exit to top
end if
if the short name of the target <> the short name of me then
pass libraryStack
end if -- if the short name of the target <> the short name of me
end libraryStack
...@@ -401,6 +430,6 @@ end mostRecentModDate ...@@ -401,6 +430,6 @@ end mostRecentModDate
--| END OF feedjsonmodel.lc --| END OF feedjsonmodel.livecodescript
--| Location: ./modules/feedjson/models/feedjsonmodel.lc --| Location: ./modules/feedjson/models/feedjsonmodel.livecodescript
---------------------------------------------------------------------- ----------------------------------------------------------------------
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment