Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Kevin Kaland
    @wizonesolutions
    trying to just run it with MONGO_OPLOG_URL= and hoping that'll disable it
    dunno if there is a fix
    Google was not my friend
    Joe Pea
    @trusktr
    @wizonesolutions Seems like you're trying to stick something in the DB that is bigger than normal. Have you tried searching for "object to insert exceeds cappedMaxSize"?
    pihentagy
    @pihentagy
    Hi all! If I use typescript what should I do to be able to import tsx from ts? I have only seen the solution for webpack https://stackoverflow.com/questions/48271313/cannot-import-tsx-file-from-ts-file-and-vice-versa
    Joe Pea
    @trusktr
    Uh oh, that sounds like a problem. If you find out, please share with us @pihentagy. The TS stuff is brand new, and the TS package in meteor might still need changes.
    Dami
    @dami_alv_twitter
    Hey guys, what’s the best option in order to validate arguments? Using validated methods for Meteor sever methods and check for class methods is a good approach?
    Joe Pea
    @trusktr
    seems like so. check is great for validating many things. It can throw an error, and thus force people to pass correct args.
    Dami
    @dami_alv_twitter
    Great @trusktr
    Thank you :)
    Navyroot
    @Navyroot
    Hi guy . I have some problem in meteor . I want to import .md file to render vue template but it's got error :
    [Vue warn]: Failed to resolve async component: function () { return module.dynamicImport('./Vue-Markdown.vue'); } Reason: Error: Cannot find module './README.md'
    On vue template code .
    <template>
      <div>
           <VueShowdown :markdown="fileContent"></VueShowdown>
      </div>
    </template>
    <script>
    import Vue from 'vue'
    import VueShowdown from 'vue-showdown'
    
    // the second parameter of Vue.use() is optional
    Vue.use(VueShowdown, {
      // set default flavor of showdown
      flavor: 'github',
      // set default options of showdown (will override the flavor options)
      options: {
        emoji: true,
      },
    })
    import mdFile from './README.md'
    export default {
      name: 'VueMarkdown',
      data() {
        return {
          fileContent: '',
        }
      },
      mounted() {
        this.getMDFile()
      },
      methods: {
        getMDFile() {
          this.fileContent = mdFile
        },
      },
    }
    </script>
    Joe Pea
    @trusktr
    @Navyroot Do you have a Meteor package installed that allows you to import .md files? I don't know if one exists, but if you don't have such a package installed, then you can't import .md files because Meteor doesn't know how to import those out of the box.
    Navyroot
    @Navyroot
    @trusktr Which Meteor package for import .md files?
    Joe Pea
    @trusktr
    THat's what I'm saying, is that I don't know if one exists. You can check on https://atmospherejs.com for Meteor-specific packages.
    Looks like Meteor has an official package for that: https://atmospherejs.com/meteor/markdown
    So, instead of writing .md files, you'd need to make an .html file and use that {{markdown}} helper inside of it.
    Navyroot
    @Navyroot
    But I'm base on Vuejs
    Joe Pea
    @trusktr
    Then look for "vue markdown" on Google and you might find a Vue component for writing markdown
    You may be able to configure Webpack inside of Meteor using one of those, and tell it to use a markdown loader to load .md files, and import them perhaps.
    Navyroot
    @Navyroot
    Thank I will try
    Mike Hughes
    @mikehhhhhhh

    Hi all, I've just taken over a Meteor project that looks to be quite insecure as no methods are authenticated.

    Is there a more elegant solution to authenticate methods than checking for this.userId in each one manually? Any kind of middleware perhaps?

    Or some kind of wrapper or way to extend method definitions so I can simply define authenticated methods in bulk?
    Jonathan
    @jonathanazulay
    You can just make simple guard functions and call them inside your methods. Thats where the logic should be anyways.
    Mike Hughes
    @mikehhhhhhh
    That's what I've done, it just feels horribly repetitive, when every method in a Meteor.methods({}) block has the same
    Sounds like it's asking for someone to forget one too!
    Jonathan
    @jonathanazulay
    Yeah well, I don’t think all kinds of repetition necessarily is bad. So you mean all of those methods have the exact same authorization rules?
    You can always forget security rules :) most of the times they are probably impossible to spot
    Mike Hughes
    @mikehhhhhhh
    Each block definition of methods generally does. There are some exceptions.
    Ha, this application I've picked up previously only had rules enforced on the front end 🙈
    Jonathan
    @jonathanazulay
    I think it sounds good to repeat it, makes it very clear what the method does and who can call it
    😄
    Mike Hughes
    @mikehhhhhhh
    You're probably right, I'm being a bit of a diva, spoilt by the tree structure of http route definitions
    Lenny Linux
    @tippexs
    Hi Folks - anybody around able to help me with a simple problem? I am running meteor 1.8 on Ubuntu18.04. I deployed for dev / testing a mongodb-container and starting the app like MONGO_URL=mongodb://root:password@localhost:27017 ROOT_URL=http://localhost PORT=3000 meteor run
    But when I open the app it seams the app is using admin-db and creating inital data from fixtures.
    Dami
    @dami_alv_twitter
    Happy new year everyone :)
    I found this to be a good resource to plan developer career. Hope it helps
    https://blog.invidelabs.com/developer-career-guide/
    Matt Campbell
    @maka-io
    @tippexs Try defining your MONGO_URL as MONGO_URL=mongodb://root:password@localhost:27017/app which will make sure you use the same database (app) every time.
    Dami
    @dami_alv_twitter
    Hey guys, I’m currently working on a project which has a lot of Session variables for showing/hide things on the views
    I’m just thinking on creating a mini-mongo collection for handling all the UI stuff
    Do you think guys this is a good approach?
    Guillaume Darbonne
    @guidouil
    @dami_alv_twitter the problem with minimongo is persistence, but there is some packages that will help you with that
    Also happy new year every one :)
    Dami
    @dami_alv_twitter
    Oh I see… :(
    Thank you @guidouil :)
    Kai
    @spik3r
    Hi Guys, relatively new to Meteor. We use Meteor-job for some things in our project. Is it appropriate to use this for long running cron like tasks that run weekly or it only meant for quick things? I've come across meteor-synced-cron but would prefer not to pull in extra libraries if I don't need to.
    Dami
    @dami_alv_twitter
    I think that both could work
    Btw, are you implementing meteor-job in your application? Or is it a separate project?