Coder Social home page Coder Social logo

fresns / fresns Goto Github PK

View Code? Open in Web Editor NEW
377.0 9.0 49.0 25.54 MB

Fresns core library: Cross-platform general-purpose multiple content forms social network service software

Home Page: https://fresns.org

License: Apache License 2.0

PHP 73.84% Blade 23.88% CSS 0.07% JavaScript 2.21%
community sns bbs forum communities group social laravel

fresns's Introduction

PHP Fresns License

About Fresns

Fresns is a free and open source social network service software, a general-purpose community product designed for cross-platform, and supports flexible and diverse content forms. It conforms to the trend of the times, satisfies a variety of operating scenarios, is more open and easier to re-development.

Preview

Social Network Forum
Moments ForumX
ForumQ ThemeFrame

Installation

Read the Installation guide to get started. For support, refer to the documentation, and ask questions on the community forum or github issues.

Contributing

Thank you for considering contributing to the Fresns core library! The contribution guide can be found in the Fresns documentation.

Code of Conduct

In order to ensure that the Fresns community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Fresns, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

Fresns is open-sourced software licensed under the Apache-2.0 license.

fresns's People

Contributors

jarvis-tang avatar jevantang avatar stylecibot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fresns's Issues

用户昵称显示css建议

图片
目前帖子列表中,用户昵称显示区域使用 max-width 限制宽度,但值偏小,昵称的完整性和多样性考虑不足。

建议:fresns.css -> .user-link .user-nickname -> max-width: 10rem; text-overflow: ellipsis; 使超出的部分以省略号显示。

图片

关于 createAccount 命令字 修改建议

命令字 createAccount
type 2 手机号 账号类型
取消参数 countryCode 必填

场景 一键手机号登录 如 小程序 如APP 手机号已在云端完成验证。

Make reddit experience

Hello Team,

How can i create reddit experience?
users can create communities, managed them and post links as posts.

增加1个设置

增加1个设置,作用 设置 用户发帖 或者 评论后 返回哪个页面,该设置只对WEB客户端生效
场景就是 如果启用了门户并作为首页,而门户是如果但是单独页,发帖或者评论完 返回首页 就会返回到门户,然后又要通过门户导航重新进入帖子列表

不为别的,就是来表达下,真优秀

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

整体都体验了下,非常现代化,加油!

内容详情接口增加1个参数

/api/v2/post/{pid}/detail
增加1个参数 Markdown 默认 true
如果false 就返回 不解析Markdown的原文
这样可以前端去处理markdown

打开主题框架-设置报错

打开 应用中心-主题模板-Fresns 主题框架-设置 报错
in_array(): Argument #2 ($haystack) must be of type array, null given (View: /www/wwwroot/mtf.codegang.top/extensions/themes/ThemeFrame/functions.blade.php)

[bug] - database error on install defaultStringLength

 Would you like to create it? (yes/no) [no]
❯ yes

   INFO  Preparing database.  

  Creating migration table ............................................................................................................... 39ms DONE

   INFO  Running migrations.  

  2019_12_14_000001_create_personal_access_tokens_table .................................................................................. 10ms FAIL

   Illuminate\Database\QueryException 

  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (Connection: mysql, SQL: alter table `fs_personal_access_tokens` add index `fs_personal_access_tokens_tokenable_type_tokenable_id_index`(`tokenable
_type`, `tokenable_id`))

  at vendor\laravel\framework\src\Illuminate\Database\Connection.php:829
    825▕                     $this->getName(), $query, $this->prepareBindings($bindings), $e
    826▕                 );
    827▕             }
    828▕
  ➜ 829▕             throw new QueryException(
    830▕                 $this->getName(), $query, $this->prepareBindings($bindings), $e
    831▕             );
    832▕         }
    833▕     }

Where can i put Schema::defaultStringLength(191); AppServiceProvider not found ?

I fix the issue by adding php artisan make:provider DatabaseServiceProvider

App\Providers\DatabaseServiceProvider::class, in config app.php

and add in boot method -> Schema::defaultStringLength(191);

3.0 gei roles 表增加1个字段

3.0 gei roles 表增加1个money 字段,存储角色售价,这样插件就不用建表去存了,关联表到期相关字段 如果加上 money 字段就更完美了

Curl error after installing Moments

cURL error 7: Failed to connect to 127.0.0.1 port 80 after 0 ms: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1/status.json

Feature request

  • Need discussion channel on github.
  • Some of link are not found.

浏览器安装了 simpRead 插件之后,登录状态访问会导致浏览器卡死

Fresns Version
Latest

Describe the bug
在浏览器安装了 simpRead 插件的情况下,访问 https://discuss.fresns.cn 然后登录,之后进行访问任何页面都会导致浏览器卡死30秒左右

To Reproduce
Steps to reproduce the behavior:

  1. 安装 simpRead: https://chrome.google.com/webstore/detail/simpread-reader-view/ijllcpnolfcooahcekpamkbidhejabll?hl=en
  2. 访问 https://discuss.fresns.cn 然后登录
  3. 访问首页、帖子页或其它页面即可

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: macOS 13.4
  • Browser: Google Chrome
  • Version: 114

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

用户表增加1个字段

用户表增加1个字段 device_id 作用存储 APP push 的客户端推送ID,推送给指定用户 需要。

Docker compatible to server requirements

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
A team of engineers with different server environments setup would have difficulties setting up or contributing to the project

Describe the solution you'd like
A clear and concise description of what you want to happen.
Add a docker file for easy setup in local and production environment

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

file .env is not intact after installing via composer

Fresns Version
v2.10.2

Describe the bug

  1. PHP Warning: copy(.env.example): Failed to open stream: No such file or directory in Command line code on line 1
  2. .env is not intact

To Reproduce
Steps to reproduce the behavior:

  1. running command composer create-project fresns/fresns

Expected behavior
the installation via composer is without PHP warnings and the .env file is intact

Screenshots
asciicast

Desktop (please complete the following information):

  • OS: CentOS 7.29
  • Browser:
  • Version

Smartphone (please complete the following information):

  • Device:
  • OS:
  • Browser
  • Version

Additional context
none

增加1个设置

第三方互联设置 能不能增加1个设置 不在用户中心显示 <绑定/解绑账号> 因为可能不需要

fontawesome 图标对齐问题

20230817154221

PC web 左侧菜单的图标对齐存在问题,影响美观。
解决办法:li.nav-item > a.nav-link >i.fa-regular:class 中添加 “fa-fw” 即可。

20230817155036

419 expired

After a fresh installation, I got 419 expired.

Editor

Add integration with Editorjs in Plugin-Editor.

500 error when getting api/v2/user/panel with postgresql

Fresns Version
2.17

Describe the bug
When getting api/v2/user/panel get 500 error due to database now() output for postgresql contains more than expected content. Unlike mysql, now() returns more data (e.g. timezone). So carbon failed to parse the string and returned 500.

To Reproduce
Steps to reproduce the behavior:

  1. Use postgresql
  2. create user in the limited group
  3. login and call panel api
  4. See error below

Expected behavior
Should handle now() output by postgresql properly.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): I don't think this is related

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information): I don't think this is related

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

dump currentTime

"2023-07-11 08:39:21.790769+08" // app/Helpers/DateHelper.php:221

stacktrace

[2023-07-10 21:29:39] production.ERROR: Trailing data {"exception":"[object] (Carbon\\Exceptions\\InvalidFormatException(code: 0): Trailing data at /www/wwwroot/example.com/fresns/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:687)
[stacktrace]
#0 /www/wwwroot/example.com/fresns/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(710): Carbon\\Carbon::rawCreateFromFormat()
#1 /www/wwwroot/example.com/fresns/app/Helpers/DateHelper.php(221): Carbon\\Carbon::createFromFormat()
#2 /www/wwwroot/example.com/fresns/app/Utilities/ConfigUtility.php(478): App\\Helpers\\DateHelper::fresnsTimeByTimezone()
#3 /www/wwwroot/example.com/fresns/app/Fresns/Api/Http/Controllers/UserController.php(663): App\\Utilities\\ConfigUtility::getPublishConfigByType()
#4 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Fresns\\Api\\Http\\Controllers\\UserController->panel()
#5 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction()
#6 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#7 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#8 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/Router.php(799): Illuminate\\Routing\\Route->run()
#9 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#10 /www/wwwroot/example.com/fresns/app/Fresns/Api/Http/Middleware/CheckReadOnly.php(32): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#11 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Fresns\\Api\\Http\\Middleware\\CheckReadOnly->handle()
#12 /www/wwwroot/example.com/fresns/app/Fresns/Api/Http/Middleware/CheckHeaderByWhitelist.php(41): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#13 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Fresns\\Api\\Http\\Middleware\\CheckHeaderByWhitelist->handle()
#14 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#15 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/Router.php(800): Illuminate\\Pipeline\\Pipeline->then()
#16 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/Router.php(777): Illuminate\\Routing\\Router->runRouteWithinStack()
#17 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/Router.php(741): Illuminate\\Routing\\Router->runRoute()
#18 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Routing/Router.php(730): Illuminate\\Routing\\Router->dispatchToRoute()
#19 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch()
#20 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#21 /www/wwwroot/example.com/fresns/app/Fresns/Install/Http/Middleware/DetectionRequestProtocol.php(22): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#22 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Fresns\\Install\\Http\\Middleware\\DetectionRequestProtocol->handle()
#23 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#24 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#25 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#26 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#27 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#28 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#29 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#30 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#31 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#32 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#33 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#34 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\HandleCors->handle()
#35 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#36 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#37 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#38 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#39 /www/wwwroot/example.com/fresns/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#40 /www/wwwroot/example.com/fresns/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle()
#41 {main}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.