更新记录

1.4.9(2024-07-15) 下载此版本

  • [Fresns]兼容版本 v3.5.0
  • [新增]内部链接转换成客户端内跳转
  • [新增]10个DIY单页 pages/diy_1 ... diy_10
  • [新增]编辑的录音触发事件 audio=1
  • [新增]编辑器获取焦点事件 focus=1
  • [新增]App隐私弹窗
  • [新增]打开其他微信小程序方法
  • [优化]回复编辑器的按钮调度问题
  • [优化]部分结构代码
  • [修复]一些UI BUG
  • [修复]编辑器回复帖子内容的BUG
  • [修复]编辑器内容太多软键盘遮挡问题
  • [修复]youransns-diy中的书写BUG
  • [修复]微信小程序登录以后我的页面的状态显示问题
  • [兼容]H5登录注册
  • [兼容]H5发帖编辑器
  • [兼容]H5回帖编辑器
  • [兼容]H5 UI
  • [兼容]H5 删除所有音频录制功能

1.4.8(2024-06-25) 下载此版本

  • [新增]另一个小组组件
  • [新增]帖子回复可见功能(需要安装插件,VIP用户可联系客服免费安装,在editor.json文件中开启)
  • [新增]编辑器配置图片、视频是否压缩(editor.json)
  • [新增]配置文件的多平台应用,实现APP、小程序、H5应用不同的DIY配置文件(common/globalMethod.js)
  • [新增]侧边按钮组件
  • [新增]帖子详情页增加两个钩子(post.json)
  • [新增]一个滑动小组组件
  • [新增]一个全屏独立发布按钮页面
  • [新增]部分DIY数据的缓存
  • [新增]编辑器一个更多按钮
  • [新增]快速回复(post.json)
  • [新增]我关注的人发的帖子
  • [新增]搜索(需要安装简易搜索插件,在editor.json文件中开启)
  • [新增]服务条款、隐私政策、Cookie使用条款、注销说明
  • [新增]对话设置
  • [新增]评论设置
  • [优化]部分DIY结构代码
  • [优化]附近的帖子
  • [更改]将帖子详情点赞、收藏按钮移动至页面内容下
  • [更改]将帖子回复直接移动至编辑器
  • [更改]隐藏编辑器把音频插入到正文中,mp-html在不同平台处理的不一致会有BUG
  • [更改]帖子详情页中的小组展示方式
  • [更改]帖子详情页的loading变为骨架屏
  • [修复]登录页面一闪而过
  • [修复]几处UI BUG
  • [修复]下拉刷新的BUG
  • [修复]帖子详情的一个判断BUG
  • [修复]编辑器软键盘上拉问题
  • [移除]部分无用代码

1.4.7.1(2024-06-16) 下载此版本

  • Fresns 兼容版本 v3.4.0
  • [重构]话题详情页支持DIY
  • [新增]即时聊天组件支持关键词过滤系统
  • [新增]即时聊天组件支持长按收藏、点赞、复制
  • [新增]通知页增加全部已阅按钮
  • [新增]默认小组发布按钮
  • [新增]帖子详情页分享功能
  • [新增]编辑器引用帖子功能
  • [新增]我的回复
  • [新增]我关注的帖子
  • [新增]我关注的人
  • [新增]选项式小组DIY组件
  • [优化]评论通知的跳转页面为评论详情页
  • [修复]即时聊天小组引用的BUG
  • [修复]即时聊天小组位置问题的BUG
  • [修复]帖子详情页点击评论框在点击表情的遮挡问题
  • [修复]复杂编辑器回复的BUG
  • [修复]即时聊天小组点击头像打开用户详情
  • [修复]即时聊天组件的一些BUG
  • [修复]全局css初始化的一个BUG
  • [修复]列表符号转换问题的BUG
  • [修复]H5 弹窗头条UI问题
  • [修复]新号微信登录问题
查看更多

平台兼容性

Vue2 Vue3
×
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
app-vue × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
× × × × ×

需要一款个性化、场景化社交解决方案?来吧!一切,从这里开始!!!

简介

YouranSNS 是由悠然技术团队从零开发并持续维护的一款免费的社交软件解决方案,它致力于提供个性化、定制化以及场景化的服务体验,该项目严格遵循 Apache-2.0 开源协议,确保了其开放性和可自由使用性。

YouranSNS 技术架构

在后端架构上,YouranSNS 选择了开源产品 Fresns(Fresns),该产品因其通用性强、适用场景广泛、灵活性高且同样坚持免费开源的原则,与 YouranSNS 的核心定位完美契合。因此,可以将 YouranSNS 理解为针对 Fresns 进行深度开发的客户端,即 "YouranSNS and Fresns"。

前端技术栈,YouranSNS 采用了 uni-app/vue3,确保了跨平台的一致性和高效性,使得该解决方案能够无缝兼容包括 App、小程序及 H5 在内的多种终端环境。

自设计初期,YouranSNS 就强调了 DIY 模块化设计理念,用户可以根据自身需求对诸多页面进行灵活多样的个性化定制,从而满足不同用户的独特诉求。

此外,我们还提供一系列配套的技术服务与商业合作选项,不仅涵盖了 YouranSNS 的基础安装配置服务,还包括但不限于对其的深度二次开发等专业支持,旨在满足客户多元化的技术需求和业务拓展诉求。

YouranSNS 使用帮助

从这里开始,我们开始一步一步的学习、搭建我们自己的社交平台。

同时也可以加入 VIP 服务,把技术交给我们,您只负责运营项目、验证项目可行性、做大做强!VIP服务详情

YouranSNS 源码获取方式

源码获取地址(1)Fresns官方插件市场:https://marketplace.fresns.cn/clients/detail/YouRanSNS

源码获取地址(2)Dcloud插件市场:https://ext.dcloud.net.cn/plugin?id=11023

源码获取地址(3)Gitee:https://gitee.com/zjkxiaoqiangge/you-ran-sns

一、后端安装与配置

二、视频教程

三、其他相关

四、二开相关

目录结构

common 通用工具类

- globalMethod.js 全局方法
- globalStyle.scss 全局 css
- iconfont 全局字体

components 组件

- box-chat 即时聊天组件
- box-comment-fixed 浮动输入框
- box-group-tree 小组列表树排列
- box-group-tree1 选项式小组排序
- box-sidebar-button 侧边按钮组件
- box-swiper-hashtag 横向滑动标签
- box-swiper-group 滑动小组
- box-swiper-hot 一行滚动头条
- box-swiper-list-post 滚动帖子
- box-swiper-list-text 滚动帖子
- box-swiper-list-user 滚动用户
- box-swiper-list-user-1 滚动用户1
- box-swiper-slide 幻灯片
- global-audio 通用语音播放
- global-empty 通用无数据
- global-lazy-load-image 图片懒加载
- global-loading 通用转圈loading
- list-ask 问答列表
- list-circle 朋友圈列表
- list-comment 回复列表
- list-default 默认列表
- list-hashtag 话题列表
- list-interaction 互动列表
- list-simple-sorting 简单列表
- list-vicinity-post 附近的帖子
- list-waterfall 瀑布流列表
- my-mark-post 我互动的帖子列表
- my-mark-user 我互动的用户列表
- public-list-files 附件显示
- public-privacy-popup 微信隐私保护
- screen-publish-1 整页发布
- youransns-diy DIY总组件

configJSON 默认配置文件,打包时可删除

- 若干JSON文件

locale 多语言文件夹

- en.json 英文
- index.js 配置文件
- zh-Hans.json 中文简体
- zh-Hant.json 中文繁体

pages 主要页面

- comment 评论
- draft 草稿
- editor 编辑器
- group 小组
- hashtag 话题
- my 我的
- navigation 3个DIY导航
- notification 通知
- pages 通用页面
- post 帖子
- search 搜索
- user 用户

uni.setStorageSync 本地同步储存

headlineRecommendation 首页的头条推荐 accountAuthToken 账号与用户的token clientDeviceInfo fresns header 中的 X-Fresns-Client-Device-Info language 语言设置 diy_1_json diy_1.json 缓存 diy_2_json diy_2.json 缓存 diy_3_json diy_3.json 缓存 post_json 帖子缓存

以下为监听

editorPublishSuccess 编辑器发布成功标识 noticePostDeleteSuccess 帖子删除后的通知 noticeCommentDeleteSuccess 评论删除后的通知 extendWebView 插件管理完成后的通知

演示

安卓App可以直接下载 https://www.0313.co/YouransnsFile/youran.apk

小程序预览

小程序预览

关于版权

免费、开源、可商用,Apache-2.0 开源协议,不限形式二开、不限形式传播,但是一定要遵纪守法不得将 YouranSNS 用于任何违反法律的事情上。

鸣谢

  • Fresns 一款免费开源的社交网络服务软件
  • uni-app 是一个使用 Vue.js 开发所有前端应用的框架
  • mp-html 一个强大的富文本组件

YouranSNS 是采用 Apache-2.0 许可的开源项目,使用完全免费。

维护这样一个高质量的、长久性的开源项目是需要巨大的努力,只有在我们的赞助者慷慨的财务支持下才得以持续。

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

  1. Definitions.

    "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.

    "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.

    "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

    "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.

    "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.

    "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.

    "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).

    "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.

    "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."

    "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.

  2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.

  3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.

  4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:

    (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and

    (b) You must cause any modified files to carry prominent notices stating that You changed the files; and

    (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and

    (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.

    You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

  5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.

  6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.

  7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.

  8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.

  9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.

    END OF TERMS AND CONDITIONS

    APPENDIX: How to apply the Apache License to your work.

    To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.

    Copyright [yyyy] [name of copyright owner]

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问