goler

第 3993 号会员 /

回复了 jimmykuu 创建的主题: Slack 的开源替代品 Mattermost

下载安装了一下,好像没有发现太出色的功能,当然是还没有细究。只是对协议有些搞不懂,请大家帮忙看看该程序能否商用呢?

Mattermost Licensing

SOFTWARE LICENSING

Mattermost server is made available under two separate licensing options:

  • Free Software Foundation’s GNU AGPL v.3.0, subject to the exceptions outlined in this policy; or
  • Commercial licenses available from SpinPunch, Inc. by contacting commercial@mattermost.com

Admin Tools and Configuration Files (api/templates/, config/, model/, web/react/utils/, web/static/, web/templates/ and all subdirectories thereof) are made available under:

  • Apache License v2.0

LICENSING POLICY

The objective of the Mattermost server license is to require enhancements to Mattermost server be shared with the community while allowing for non-enhanced use in proprietary applications.

Therefore, the Mattermost server is free to use, modify and redistribute in open source applications via the copyleft AGPL license. For proprietary applications (systems that don’t share source back to the community), Mattermost is free to use and redistribute so long as you’re not withholding proprietary enhancements to the Mattermost server and you’re only linking directly to or changing Admin Tools and Configuration Files (defined above), which are released under an Apache 2.0 license, and copyleft free.

We promise that we will not enforce the copyleft provisions in AGPL v3.0 against you if your application (a) does not link to the Mattermost server directly, but exclusively uses the Mattermost Admin Tools and Configuration Files, and (b) you have not modified, added to or adapted the source code of Mattermost in a way that results in the creation of a “modified version” or “work based on” Mattermost as these terms are defined in the AGPL v3.0 license.

If the above is not enough to satisfy your organization’s legal department (some will not approve GPL in any form), commercial licenses are available from commercial@mattermost.com.

MATTERMOST TRADEMARK GUIDELINES

Your use of the mark Mattermost is subject to SpinPunch’s prior written approval and our organization’s Trademark Standards of Use at http://www.mattermost.org/trademark-standards-of-use/. For trademark approval or any questions you have about using these trademarks, please email trademark@mattermost.com


请帮忙回复一下大概的意思就行。谢谢

回复了 goler 创建的主题: Revel ul li dblclick

@jimmykuu 谢谢

<script>
$(ul li).on("dblclick",function(){
    window.open("/articles")
})
</script> 

思维一下没有转变过来,嘿嘿

回复了 goler 创建的主题: Revel ul li dblclick

也就是说 revel > conf > routes 中的GET如何设定才能和dblclick 绑定?

<script>
$(ul li).on("dblclick",function(){
   $.get("/articles") //这样能行?
})
</script>

回复了 goler 创建的主题: Revel ul li dblclick

<a href="/articles"> 是经过路由到达 app 文件目录下的页面;而
$(ul li).on(“dblclick”,function(){}只能到达Public目录;
我想dblclick 实现 <a href="/***">的功能。

不知是否表达清楚哦

回复了 goler 创建的主题: Revel ul li dblclick

revel 下

<script>
$(ul li).on("dblclick",function(){
    window.open("articles.html")
})
</script>

这样跳转只能到public文件目录下articles.html,而不是在app文件目录里articles.html

回复了 goler 创建的主题: golang css url img的正则

基本能用了,可以把css中的图片自动下载下来了。但还是有个小问题。

../image/bj.gif
../tab/image/bj.gif
../pub/tab/image/bj.gif
../pub/tab/ul/image/bj.gif

请问如何正则出 第一个 “/“ 和 最后一个 “/“ 之间的内容,形成一个字符串。

回复了 goler 创建的主题: golang css url img的正则

 //这样找到 css url()中的内容

 re, _ := regexp.Compile("\\([\\S\\s]+?\\)")

 re.FindAllString(string(str), -1)