-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make fontawesome.css localization. DaiZerong 201732120115 #26
base: master
Are you sure you want to change the base?
Conversation
@dzr201732120115 Thanks. On our server, we already have So I don't think we should include this file in the repo. Could you delete this file from this Pull Request? Hui |
Header.php
Outdated
@@ -30,7 +30,8 @@ | |||
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"/> | |||
|
|||
<!--<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> --> | |||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/fontawesome.min.css" /> | |||
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/fontawesome.min.css" />--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dzr201732120115
Do we still need this line, <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/fontawesome.min.css" />-->
, since it was commented out?
Hui
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have deleted this comment
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/fontawesome.min.css" />-->
And link it to localization.
<link rel="stylesheet" href="http://118.25.96.118/nor/font-awesome/css/font-awesome.min.css" />
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外LRR网站中附带的font-awesome.min.css版本是4.0,Header.php去cdnjs中引用的是5.8.2,不过影响应该不大
@dzr201732120115 我现在有点明白为什么LRR加载课程列表缓慢了,因为它的
所以,重点是要把对 jquery.com 的依赖下载到服务器本地。 因为访问 jquery.com 太慢。 你下载下面这个css.zip, 然后把上面这些依赖 jquery.com 上的 css 或者 js 文件的地方,都指向这个 css 文件夹。 注意,该css文件夹应该与 Course.php 同级。 蓝珲 |
对的,如果能把jquery像font-awesome一样下载在nor本地,就能直接去本地引用。
另外提一下,我直接clone未经改动的LRR项目放在本地是显示异常的,现在部署的http://118.25.96.118/nor/
和 https://github.com/lanlab-org/LRR.git 内容是否一致,
all.min.css应该是缺失的,整个文件都找不到它但是部署的网站上用到了,加上以后显示也正常了。
…------------------ 原始邮件 ------------------
发件人: "Software Project Management"<notifications@github.com>;
发送时间: 2020年4月15日(星期三) 中午11:32
收件人: "lanlab-org/LRR"<LRR@noreply.github.com>;
抄送: "975336710"<975336710@qq.com>;"Mention"<mention@noreply.github.com>;
主题: Re: [lanlab-org/LRR] Make fontawesome.css localization. DaiZerong 201732120115 (#26)
@dzr201732120115
我现在有点明白为什么LRR加载课程列表缓慢了,因为它的 Courses.php, Course.php 要去访问 https://code.jquery.com
Course.php:<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> Course.php:<script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script> Course.php:<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" /> Courses.php: <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> Courses.php:<script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script> Courses.php:<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" /> Header.php:<script src="css/jquery.min.js" type="text/javascript"></script> Header.php:<script src="css/jquery.datetimepicker.min.js" type="text/javascript"></script> Submissions.php:<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> Submissions.php:<script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script> Submissions.php:<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css" />
所以,重点是要把对 jquery.com 的依赖下载到服务器本地。 因为访问 jquery.com 太慢。
蓝珲
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@dzr201732120115
总体一致。
我觉得 all.min.css 用不到,在lanlab-org上的Header.php也没有引用all.min.css。所以,我们的服务器上的Header.php落后于lanlab-org上的Header.php了。 所以,你下面的重点任务是把JQuery那些依赖弄到本地。 蓝珲 |
好的------------------ 原始邮件 ------------------
发件人: "Software Project Management"<notifications@github.com>
发送时间: 2020年4月15日(星期三) 中午11:52
收件人: "lanlab-org/LRR"<LRR@noreply.github.com>;
抄送: "dzr201732120115"<975336710@qq.com>;"Mention"<mention@noreply.github.com>;
主题: Re: [lanlab-org/LRR] Make fontawesome.css localization. DaiZerong201732120115 (#26)
@dzr201732120115
现在部署的http://118.25.96.118/nor/ 和 https://github.com/lanlab-org/LRR.git 内容是否一致,
一致。 除了那个Connect.php。
all.min.css应该是缺失的,整个文件都找不到它但是部署的网站上用到了,加上以后显示也正常了。
**我觉得 all.min.css 用不到,我会把 Header.php 引用 all.min.css 那行删除掉。
所以,你下面的重点任务是把JQuery那些依赖弄到本地。**
蓝珲
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
将fontawesome.css 本地化。添加all.min.css 需要该分支合并后才可进行
@dzr201732120115
我已经把all.min.css下载到服务器本地了,放在
font-awesome/css
文件夹下。你能把 Header.php 中的这行
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" />
替换成<link rel="stylesheet" href="font-awesome/css/all.min.css" />
吗?这样应该可以了吧?你知道
all.min.css
与font-awesome.min.css
之间有什么依赖吗?蓝珲