Browse Source

Update build files and created new builds.

JC Brand 10 năm trước cách đây
mục cha
commit
6b2dd9b3cb

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
builds/converse-no-locales-no-otr.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
builds/converse-no-otr.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 15 - 15
builds/converse.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 2 - 0
builds/converse.website-no-otr.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 17 - 15
builds/converse.website.min.js


+ 7 - 1
index.html

@@ -13,7 +13,13 @@
     <link type="text/css" rel="stylesheet" media="screen" href="components/fontawesome/css/font-awesome.min.css" />
     <link type="text/css" rel="stylesheet" media="screen" href="css/theme.css" />
     <link type="text/css" rel="stylesheet" media="screen" href="css/converse.min.css" />
-    <script data-main="main" src="components/requirejs/require.js"></script>
+    <!-- Only for development: <script data-main="main" src="components/requirejs/require.js"></script> -->
+    <![if gte IE 9]>
+        <script src="builds/converse.website.min.js"></script>
+    <![endif]>
+    <!--[if lt IE 9]>
+        <script src="builds/converse.website-no-otr.min.js"></script>
+    <![endif]-->
 </head>
 
 <body id="page-top" data-spy="scroll" data-target=".navbar-custom">

+ 10 - 0
src/build-no-locales-no-otr.js

@@ -10,6 +10,15 @@
             interpolate : /\{\{([\s\S]+?)\}\}/g
         }
     },
+    map: {
+        // '*' means all modules will get 'jquery-private'
+        // for their 'jquery' dependency.
+        '*': { 'jquery': 'jquery-private' },
+        // 'jquery-private' wants the real jQuery module
+        // though. If this line was not here, there would
+        // be an unresolvable cyclic dependency.
+        'jquery-private': { 'jquery': 'jquery' }
+    },
     paths: {
         "backbone":                 "components/backbone/backbone",
         "backbone.browserStorage":  "components/backbone.browserStorage/backbone.browserStorage",
@@ -19,6 +28,7 @@
         "converse-templates":       "src/templates",
         "eventemitter":             "components/otr/build/dep/eventemitter",
         "jquery":                   "components/jquery/dist/jquery",
+        "jquery-private":           "src/jquery-private",
         "jquery.browser":           "components/jquery.browser/dist/jquery.browser",
         "jquery.easing":            "components/jquery-easing-original/jquery.easing.1.3", // XXX: Only required for https://conversejs.org website
         "moment":                   "components/momentjs/moment",

+ 10 - 0
src/build-no-otr.js

@@ -10,6 +10,15 @@
             interpolate : /\{\{([\s\S]+?)\}\}/g
         }
     },
+    map: {
+        // '*' means all modules will get 'jquery-private'
+        // for their 'jquery' dependency.
+        '*': { 'jquery': 'jquery-private' },
+        // 'jquery-private' wants the real jQuery module
+        // though. If this line was not here, there would
+        // be an unresolvable cyclic dependency.
+        'jquery-private': { 'jquery': 'jquery' }
+    },
     paths: {
         "backbone":                 "components/backbone/backbone",
         "backbone.browserStorage":  "components/backbone.browserStorage/backbone.browserStorage",
@@ -18,6 +27,7 @@
         "converse-templates":       "src/templates",
         "eventemitter":             "components/otr/build/dep/eventemitter",
         "jquery":                   "components/jquery/dist/jquery",
+        "jquery-private":           "src/jquery-private",
         "jquery.browser":           "components/jquery.browser/dist/jquery.browser",
         "moment":                   "components/momentjs/moment",
         "strophe":                  "components/strophe/strophe",

+ 10 - 0
src/build-website-no-otr.js

@@ -10,6 +10,15 @@
             interpolate : /\{\{([\s\S]+?)\}\}/g
         }
     },
+    map: {
+        // '*' means all modules will get 'jquery-private'
+        // for their 'jquery' dependency.
+        '*': { 'jquery': 'jquery-private' },
+        // 'jquery-private' wants the real jQuery module
+        // though. If this line was not here, there would
+        // be an unresolvable cyclic dependency.
+        'jquery-private': { 'jquery': 'jquery' }
+    },
     paths: {
         "backbone":                 "components/backbone/backbone",
         "backbone.browserStorage":  "components/backbone.browserStorage/backbone.browserStorage",
@@ -19,6 +28,7 @@
         "converse-templates":       "src/templates",
         "eventemitter":             "components/otr/build/dep/eventemitter",
         "jquery":                   "components/jquery/dist/jquery",
+        "jquery-private":           "src/jquery-private",
         "jquery.browser":           "components/jquery.browser/dist/jquery.browser",
         "jquery.easing":            "components/jquery-easing-original/jquery.easing.1.3", // XXX: Only required for https://conversejs.org website
         "moment":                   "components/momentjs/moment",

+ 10 - 0
src/build-website.js

@@ -10,6 +10,15 @@
             interpolate : /\{\{([\s\S]+?)\}\}/g
         }
     },
+    map: {
+        // '*' means all modules will get 'jquery-private'
+        // for their 'jquery' dependency.
+        '*': { 'jquery': 'jquery-private' },
+        // 'jquery-private' wants the real jQuery module
+        // though. If this line was not here, there would
+        // be an unresolvable cyclic dependency.
+        'jquery-private': { 'jquery': 'jquery' }
+    },
     paths: {
         "backbone":                 "components/backbone/backbone",
         "backbone.browserStorage":  "components/backbone.browserStorage/backbone.browserStorage",
@@ -19,6 +28,7 @@
         "converse-templates":       "src/templates",
         "eventemitter":             "components/otr/build/dep/eventemitter",
         "jquery":                   "components/jquery/dist/jquery",
+        "jquery-private":           "src/jquery-private",
         "jquery.browser":           "components/jquery.browser/dist/jquery.browser",
         "jquery.easing":            "components/jquery-easing-original/jquery.easing.1.3", // XXX: Only required for https://conversejs.org website
         "moment":                   "components/momentjs/moment",

+ 10 - 0
src/build.js

@@ -10,6 +10,15 @@
             interpolate : /\{\{([\s\S]+?)\}\}/g
         }
     },
+    map: {
+        // '*' means all modules will get 'jquery-private'
+        // for their 'jquery' dependency.
+        '*': { 'jquery': 'jquery-private' },
+        // 'jquery-private' wants the real jQuery module
+        // though. If this line was not here, there would
+        // be an unresolvable cyclic dependency.
+        'jquery-private': { 'jquery': 'jquery' }
+    },
     paths: {
         "backbone":                 "components/backbone/backbone",
         "backbone.browserStorage":  "components/backbone.browserStorage/backbone.browserStorage",
@@ -18,6 +27,7 @@
         "converse-templates":       "src/templates",
         "eventemitter":             "components/otr/build/dep/eventemitter",
         "jquery":                   "components/jquery/dist/jquery",
+        "jquery-private":           "src/jquery-private",
         "jquery.browser":           "components/jquery.browser/dist/jquery.browser",
         "moment":                   "components/momentjs/moment",
         "strophe":                  "components/strophe/strophe",

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác