Browse Source

app n2o was renamed to n4u

221V 1 year ago
parent
commit
2b728f1e17

+ 1 - 1
priv/web/apps/sample/src/routes.erl

@@ -1,5 +1,5 @@
 -module(routes).
 -module(routes).
--include_lib("n2o/include/wf.hrl").
+-include_lib("n4u/include/wf.hrl").
 -export([init/2, finish/2]).
 -export([init/2, finish/2]).
 
 
 finish(State, Ctx) -> {ok, State, Ctx}.
 finish(State, Ctx) -> {ok, State, Ctx}.

+ 2 - 2
priv/web/apps/sample/src/sample.app.src

@@ -1,7 +1,7 @@
 {application, sample,
 {application, sample,
-  [{description, "N2O Sample"},
+  [{description, "N4U (N2O v4.4 fork) Simple Sample Application"},
    {vsn, "2.10"},
    {vsn, "2.10"},
    {registered, []},
    {registered, []},
-   {applications, [kernel, stdlib, n2o]},
+   {applications, [kernel, stdlib, n4u]},
    {mod, { sample, []}},
    {mod, { sample, []}},
    {env, []} ]}.
    {env, []} ]}.

+ 1 - 1
priv/web/apps/sample/src/sample.erl

@@ -24,7 +24,7 @@ env()    -> [ { env, [ { dispatch, points() } ] } ].
 static() ->   { dir, "apps/sample/priv/static", mime() }.
 static() ->   { dir, "apps/sample/priv/static", mime() }.
 n4u()    ->   { dir, "deps/n4u/priv",           mime() }.
 n4u()    ->   { dir, "deps/n4u/priv",           mime() }.
 mime()   -> [ { mimetypes, cow_mimetypes, all   } ].
 mime()   -> [ { mimetypes, cow_mimetypes, all   } ].
-port()   -> [ { port, wf:config(n2o,port,8001)  } ].
+port()   -> [ { port, wf:config(n4u,port,8001)  } ].
 points() -> cowboy_router:compile([{'_', [
 points() -> cowboy_router:compile([{'_', [
               { "/static/[...]", n2o_static, static() },
               { "/static/[...]", n2o_static, static() },
               { "/n4u/[...]",    n2o_static, n4u()    },
               { "/n4u/[...]",    n2o_static, n4u()    },

+ 1 - 4
priv/web/rebar.config

@@ -17,7 +17,7 @@
     {ranch,   ".*", {git, "https://git.4dev.win/n4u/ranch.git",        {tag, "1.0.0"} }},
     {ranch,   ".*", {git, "https://git.4dev.win/n4u/ranch.git",        {tag, "1.0.0"} }},
     {cowboy,  ".*", {git, "https://git.4dev.win/n4u/cowboy.git",       {tag, "1.0.1"} }},
     {cowboy,  ".*", {git, "https://git.4dev.win/n4u/cowboy.git",       {tag, "1.0.1"} }},
     
     
-    {n2o,     ".*", {git, "https://git.4dev.win/n4u/n4u.git",          {tag, "4.4"}  }},
+    {n4u,     ".*", {git, "https://git.4dev.win/n4u/n4u.git",          {tag, "4.4"}  }},
     
     
     {rest,    ".*", {git, "https://git.4dev.win/n4u/rest.git",         {tag, "2.9"}  }},
     {rest,    ".*", {git, "https://git.4dev.win/n4u/rest.git",         {tag, "2.9"}  }},
     
     
@@ -27,8 +27,5 @@
     
     
     %{oauth,   ".*", {git, "https://git.4dev.win/n4u/erlang-oauth.git", {tag, "v1.6.0"}  }},
     %{oauth,   ".*", {git, "https://git.4dev.win/n4u/erlang-oauth.git", {tag, "v1.6.0"}  }},
     %{avz,     ".*", {git, "https://git.4dev.win/n4u/avz.git",          {tag, "4.4-erl19"}  }}
     %{avz,     ".*", {git, "https://git.4dev.win/n4u/avz.git",          {tag, "4.4-erl19"}  }}
-    
-    {mad,    ".*", {git, "git://github.com/synrc/mad",          {tag, "1.9"} }},
-    {n2o,    ".*", {git, "git://github.com/synrc/n2o",          {tag, "2.9"} }}
 ]}.
 ]}.
 
 

+ 1 - 1
priv/web/sys.config

@@ -1,4 +1,4 @@
-[{n2o, [
+[{n4u, [
   {port, 8001},
   {port, 8001},
   %{websocket_port, 443},
   %{websocket_port, 443},
   {websocket_port, 8001}, % same as port for localhost test
   {websocket_port, 8001}, % same as port for localhost test

+ 3 - 3
src/mad_static.erl

@@ -13,9 +13,9 @@
 
 
 main(_Config, ["min"]) ->
 main(_Config, ["min"]) ->
     {ok,[SysConfig]} = file:consult("sys.config"),
     {ok,[SysConfig]} = file:consult("sys.config"),
-    N2O     = proplists:get_value(n2o,SysConfig,[]),
-    AppName = proplists:get_value(app,N2O,sample),
-    Minify  = proplists:get_value(minify,N2O,[]),
+    N4U     = proplists:get_value(n4u,SysConfig,[]),
+    AppName = proplists:get_value(app,N4U,sample),
+    Minify  = proplists:get_value(minify,N4U,[]),
     Command = lists:concat(["uglify -s ", string:join(erlang:element(2, Minify),", "),
     Command = lists:concat(["uglify -s ", string:join(erlang:element(2, Minify),", "),
                             " -o ", erlang:element(1, Minify), "/", AppName, ".min.js"]),
                             " -o ", erlang:element(1, Minify), "/", AppName, ".min.js"]),
     io:format("Minify: ~p~n",[Command]),
     io:format("Minify: ~p~n",[Command]),