Produced by Araxis Merge on 7/25/2018 3:41:12 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | Pain_Coach_v3.0_Jun_2018.zip\vpc-staff-web.zip\vpc-staff-web\app\common\lib | resource_directory_util.js | Thu May 10 15:41:27 2018 UTC |
2 | Pain_Coach_v3.0_Jun_2018.zip\vpc-staff-web.zip\vpc-staff-web\app\common\lib | resource_directory_util.js | Wed Jul 25 14:25:35 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 288 |
Changed | 1 | 4 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | var App_Re sources = { | |
2 | "Data": {}, | |
3 | "Model": {}, | |
4 | "Collect ion": {} | |
5 | }; | |
6 | ||
7 | App_Resour ces.hostna meProvider = "https: // URL /"; | |
8 | App_Resour ces.hostna me = "http s:// URL /"; | |
9 | ||
10 | App_Resour ces.Model. AppResourc e = Backbo ne.Model.e xtend({ | |
11 | idAttrib ute: "titl e", | |
12 | defaults : { | |
13 | "title ": "", | |
14 | "href" : "" | |
15 | } | |
16 | }); | |
17 | ||
18 | App_Resour ces.Model. PgdResourc e = Backbo ne.Model.e xtend({ | |
19 | idAttrib ute: "titl e", | |
20 | defaults : { | |
21 | "title ": "", | |
22 | "value ": "" | |
23 | } | |
24 | }); | |
25 | ||
26 | App_Resour ces.Model. PgdModelRe source = B ackbone.Mo del.extend ({ | |
27 | idAttrib ute: "mode lType", | |
28 | defaults : { | |
29 | "model Type": "", | |
30 | "mappi ngs": {}, | |
31 | } | |
32 | }); | |
33 | ||
34 | App_Resour ces.Model. AtomResour ce = Backb one.Model. extend({ | |
35 | idAttrib ute: "titl e", | |
36 | defaults : { | |
37 | "rel": "", | |
38 | "title ": "", | |
39 | "objec t-type": " ", | |
40 | "href" : "", | |
41 | "type" : "" | |
42 | } | |
43 | }); | |
44 | ||
45 | App_Resour ces.Model. HateoasRes ource = Ba ckbone.Mod el.extend( { | |
46 | idAttrib ute: "rel" , | |
47 | defaults : { | |
48 | "rel": "", | |
49 | "href" : "" | |
50 | } | |
51 | }); | |
52 | ||
53 | App_Resour ces.Collec tion.Resou rcesBase = Backbone. Collection .extend({ | |
54 | fetch: f unction () { | |
55 | var de ferred = $ .Deferred( ), | |
56 | co llection = this; | |
57 | ||
58 | $.getJ SON(this.u rl).done(f unction (r esourcesRe sponse) { | |
59 | co llection.r eset(resou rcesRespon se.resourc es); | |
60 | de ferred.res olve(); | |
61 | }).fai l(function (jqXHR, t extStatus, errorThro wn) { | |
62 | de ferred.rej ect(jqXHR, textStatu s, errorTh rown); | |
63 | }); | |
64 | ||
65 | return deferred. promise(); | |
66 | } | |
67 | }); | |
68 | ||
69 | App_Resour ces.Collec tion.AppRe sources = App_Resour ces.Collec tion.Resou rcesBase.e xtend({ | |
70 | url: 're sources.js on', | |
71 | model: A pp_Resourc es.Model.A ppResource | |
72 | }); | |
73 | ||
74 | App_Resour ces.Collec tion.PgdRe sources = App_Resour ces.Collec tion.Resou rcesBase.e xtend({ | |
75 | url: 'pg dResources .json', | |
76 | model: A pp_Resourc es.Model.P gdResource | |
77 | }); | |
78 | ||
79 | App_Resour ces.Collec tion.PgdMo delResourc es = App_R esources.C ollection. ResourcesB ase.extend ({ | |
80 | url: 'pg dModelReso urces.json ', | |
81 | model: A pp_Resourc es.Model.P gdModelRes ource | |
82 | }); | |
83 | ||
84 | /** | |
85 | * @return s {String} | |
86 | */ | |
87 | App_Resour ces.GetVPC ResourcePa th = funct ion(urlNam e, params) { | |
88 | var urlP ath = VPC. Resources. App.get(ur lName).toJ SON().href ; | |
89 | ||
90 | if (para ms) { | |
91 | var pa ramKeys = Object.key s(params); | |
92 | for (v ar i = 0; i < paramK eys.length ; i++) { | |
93 | urlP ath = urlP ath.replac e("{" + pa ramKeys[i] + "}", pa rams[param Keys[i]]); | |
94 | } | |
95 | } | |
96 | return u rlPath; | |
97 | }; | |
98 | ||
99 | ||
100 | ||
101 | /** | |
102 | * @return s {String} | |
103 | */ | |
104 | App_Resour ces.GetPGD ResourceVa lue = func tion(resou rceName) { | |
105 | return V PC.Resourc es.Pgd.get (resourceN ame).get(' value'); | |
106 | }; | |
107 | ||
108 | /** | |
109 | * @return s {Object} | |
110 | */ | |
111 | App_Resour ces.GetPGD ModelValue = functio n(resource Name, titl e) { | |
112 | var mode lValue = V PC.Resourc es.PgdMode l.get(reso urceName). get('mappi ngs')[titl e]; | |
113 | ||
114 | return m odelValue; | |
115 | }; | |
116 | ||
117 | /** | |
118 | * @return s {String} | |
119 | */ | |
120 | App_Resour ces.GetUse rAssigning Authority = function () { | |
121 | try { | |
122 | if (VP C.Data.Vie w.Header.m hpuser) { | |
123 | retu rn VPC.Dat a.View.Hea der.mhpuse r.userIden tifier.ass igningAuth ority; | |
124 | } | |
125 | } | |
126 | catch (e rr) { | |
127 | consol e.log('err or getting assigning authority : ' + err. message); | |
128 | } | |
129 | return u ndefined; | |
130 | }; | |
131 | ||
132 | /** | |
133 | * @return s {String} | |
134 | */ | |
135 | App_Resour ces.GetUse rPatientId = functio n() { | |
136 | try { | |
137 | if (VP C.Data.Vie w.Header.m hpuser) { | |
138 | retu rn VPC.Dat a.View.Hea der.mhpuse r.userIden tifier.uni queId; | |
139 | } | |
140 | } | |
141 | catch (e rr) { | |
142 | consol e.log('err or getting patient i d: ' + err .message); | |
143 | } | |
144 | return n ull; | |
145 | ||
146 | }; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.