1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

Your Opinion Matters: Preferred library for CEF/UI elements

Discussion in 'Archive' started by andreasb, Jan 30, 2017.

Which library would you like to see used?

Poll closed Feb 2, 2017.
  1. React

    0 vote(s)
    0.0%
  2. Angular 2 (Framework)

    2 vote(s)
    12.5%
  3. Vue.js

    5 vote(s)
    31.3%
  4. jQuery

    9 vote(s)
    56.3%
  5. other (please comment)

    0 vote(s)
    0.0%
Thread Status:
Not open for further replies.
  1. M3L7Z

    M3L7Z Active Member

    Messages:
    66
    Likes Received:
    13
    Joined:
    Jan 7, 2017
    Holy shit, this is exactly what I mean!
    I love itheart~~
     
  2. marx

    marx New Member

    Messages:
    2
    Likes Received:
    0
    Joined:
    Jan 16, 2017
    Server slogan should be much smaller, at the moment it seems like it's almost same size as server name, also margin between these two should be smaller. my thoughts, other than that it's good!
     
  3. andreasb

    andreasb Well-Known Member

    Messages:
    128
    Likes Received:
    61
    Joined:
    Aug 4, 2016
    Yes~~ Will continue tomorrow

    Yes, I agree! Went with the default h1 and h2 sizes, so I'll redefine them to look better. Thanks nod~~
     
    M3L7Z likes this.
  4. M3L7Z

    M3L7Z Active Member

    Messages:
    66
    Likes Received:
    13
    Joined:
    Jan 7, 2017
    Or maybe like a Blockquote?
     

    Attached Files:

  5. MissMelissa

    MissMelissa New Member

    Messages:
    0
    Likes Received:
    0
    Joined:
    Dec 26, 2016
    Very nice!
     
    andreasb likes this.
  6. Adam

    Adam Staff Member Administrator Webmaster Developer

    Messages:
    275
    Likes Received:
    146
    Joined:
    Apr 3, 2016
    I suggest documenting your progress at the Showroom
     
  7. andreasb

    andreasb Well-Known Member

    Messages:
    128
    Likes Received:
    61
    Joined:
    Aug 4, 2016
    Good idea! Will do :=)
     
  8. andreasb

    andreasb Well-Known Member

    Messages:
    128
    Likes Received:
    61
    Joined:
    Aug 4, 2016
    So, the poll results clearly favor jQuery as the library most potential "users" would prefer. After spending roughly half a day getting into the basics of Vue, I've decided to continue using it in favor of jQuery. Several reasons, but the simplicity of defining reusable components + state management makes it better suited than jQuery for the GUIs I'm planning to make in the future as well.

    Sneak peak of how to use the login GUI (component called gnui-login):
    Code:
    <html>
    
    <head>
        <script src="js/vue.js"></script>
        <link rel="stylesheet" href="css/bootswatch.css">
        <link rel="stylesheet" href="css/login-ui.css">
        <script src="login-ui.js"></script>
    </head>
    
    <body>
    
        <div id="app" style="width: 100%">
            <gnui-login name="Server Name"
                        slogan="Server Slogan"
                        description="Server Description"
                        @login-handler="loginUser" />
    
        </div>
    
        <script type="text/javascript">
            new Vue({
                el: "#app",
                methods: {
                    loginUser: function (user) {
                        resourceCall("login", user.username, user.password);
                    }
                }
            });
        </script>
    
    </body>
    
    </html>
    
    
     
    Last edited: Feb 1, 2017
    MissMelissa likes this.
  9. MissMelissa

    MissMelissa New Member

    Messages:
    0
    Likes Received:
    0
    Joined:
    Dec 26, 2016
    Yay! Vue is super cool. :=D
     
    andreasb likes this.
  10. Jony

    Jony Member

    Messages:
    18
    Likes Received:
    0
    Joined:
    Oct 19, 2016
    jQuery sucks, Vue is also my preferred one. But there are some other good librarys.
     
  11. MissMelissa

    MissMelissa New Member

    Messages:
    0
    Likes Received:
    0
    Joined:
    Dec 26, 2016
    Yeah I don't feel like jquery fits the job description. People were probably just voting based on what they know rather than what would do the job well. :=P
     
  12. Jony

    Jony Member

    Messages:
    18
    Likes Received:
    0
    Joined:
    Oct 19, 2016
    You're right. People always votes the stuff they know :=D - Nobody takes the time to get in touch with advantages and disadvantages of such libraries. There are often so much more that not so popular as the known ones.
     
  13. micaww

    micaww Member

    Messages:
    12
    Likes Received:
    0
    Joined:
    Jan 12, 2017
    All hail Bootstrap!
     
Thread Status:
Not open for further replies.

Share This Page