Code Monkey home page Code Monkey logo

catchat's People

Contributors

chen-guannan avatar greyli avatar joheryu avatar yuxiaoy1 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

catchat's Issues

关于google oauth的问题

我去google设置OAuth client id设置应用的主页时,我本来想设置成本地的局域网URL :http://192.168.123.116:5000,还有callback的 URL :http://192.168.123.116:5000/callback/Google, 谷歌提示不能用局域网这类地址,后来又跑去hosts文件设置了xxx.Wggglggg.com,再去谷歌设置两个url时,谷歌又提示要用https://,我用作者的源码127.0.0.1测试时,网址我看了是http的啊,这是如何实现的,并且.flaskenv第三方的怎么都是test

The /messages page is not styled.

The template being used for /messages page is '_messages.html', which is used as a sub-template in 'home.html' to render a list of messages. However, when used alone on /messages page, no style will be applied.

base.html中好像有问题

  • <script type="text/javascript">
      var root_url = "{{ url_for('chat.home') }}";
      var messages_url = "{{ url_for('chat.get_messages') }}";
      var current_user_id = {{ current_user.id|default(0) }};
      var csrf_token = "{{ csrf_token() }}";
    
    </script>

var current_user_id = {{ current_user.id|default(0) }};这个?????

git checkout admin 删除用户出错

    {% if current_user.is_admin and not user.is_admin %}
        <i class="delete icon"></i>
        <a class="delete-user-btn" href="#!" data-href="{{ url_for('admin.block_user', user_id=user.id) }}"
           onclick="confirm('Are you sure?')">Delete</a>
    {% endif %}
    //delete_user
    $('.delete-user-button').on('click', function () {
        var $this = $(this);
        $.ajax({
            type: 'DELETE',
            url: $this.data('href'),
            success: function () {
                console.log('Success, this user is gone!')
            },
            error: function () {
                console.log('Oops, something was wrong!')
            }
        });
    });

delete-user-btn 修改为delete-user-button后,测试,还是没办法删除用户,后端接受不到delete请求.

将delet-user-button这段js代码内嵌到_profile_card.html里面问题解决了

uni-direction socket

My message can only receive by one of the front client, not bi-directionally.

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.