diff --git a/src/MarcSync/Objects/Entry.lua b/src/MarcSync/Objects/Entry.lua index 3756ee7..d28907e 100644 --- a/src/MarcSync/Objects/Entry.lua +++ b/src/MarcSync/Objects/Entry.lua @@ -6,20 +6,20 @@ local types = { local Entry = {} -Entry.getValue = function(self:typeof(Entry), value:string):any - if not value then return nil end - return self._entryData[value] +Entry.getValue = function(self:typeof(Entry), key:string):any + if not key then return nil end + return self._entryData[key] end Entry.getValues = function(self:typeof(Entry)):typeof(types.EntryData) return self._entryData end -Entry.updateValues = function(self:typeof(Entry), values:typeof(types.EntryData)):number - local result = Utils.makeHTTPRequest("entry", "PUT", "https://api.marcsync.dev/v0/entries/"..self._tableId, {["filters"]={["_id"]=self._objectId},["data"]=values}, self._accessToken); +Entry.updateValues = function(self:typeof(Entry), data:typeof(types.EntryData)):number + local result = Utils.makeHTTPRequest("entry", "PUT", "https://api.marcsync.dev/v0/entries/"..self._tableId, {["filters"]={["_id"]=self._objectId},["data"]=data}, self._accessToken); if result["success"] and result["modifiedEntries"] and result["modifiedEntries"] > 0 then - for i,v in pairs(values) do + for i,v in pairs(data) do self._entryData[i] = v end elseif not result["success"] then diff --git a/website/docs-marcsync-dev/docusaurus.config.js b/website/docs-marcsync-dev/docusaurus.config.js index 4550a2d..376964d 100644 --- a/website/docs-marcsync-dev/docusaurus.config.js +++ b/website/docs-marcsync-dev/docusaurus.config.js @@ -51,13 +51,17 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ + colorMode: { + defaultMode: 'dark' + }, // Replace with your project's social card image: 'img/docusaurus-social-card.jpg', navbar: { title: 'Roblox Documentation', logo: { alt: 'MarcSync Logo', - src: 'img/logo.svg', + src: 'img/logo.png', + srcDark: 'img/logo-dark.png', }, items: [ { diff --git a/website/docs-marcsync-dev/src/components/HomepageFeatures/index.js b/website/docs-marcsync-dev/src/components/HomepageFeatures/index.js deleted file mode 100644 index 78f410b..0000000 --- a/website/docs-marcsync-dev/src/components/HomepageFeatures/index.js +++ /dev/null @@ -1,64 +0,0 @@ -import React from 'react'; -import clsx from 'clsx'; -import styles from './styles.module.css'; - -const FeatureList = [ - { - title: 'Easy to Use', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, - description: ( - <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. - - ), - }, - { - title: 'Focus on What Matters', - Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, - description: ( - <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. - - ), - }, - { - title: 'Powered by React', - Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, - description: ( - <> - Extend or customize your website layout by reusing React. Docusaurus can - be extended while reusing the same header and footer. - - ), - }, -]; - -function Feature({Svg, title, description}) { - return ( -
-
- -
-
-

{title}

-

{description}

-
-
- ); -} - -export default function HomepageFeatures() { - return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
-
- ); -} diff --git a/website/docs-marcsync-dev/src/components/HomepageFeatures/styles.module.css b/website/docs-marcsync-dev/src/components/HomepageFeatures/styles.module.css deleted file mode 100644 index b248eb2..0000000 --- a/website/docs-marcsync-dev/src/components/HomepageFeatures/styles.module.css +++ /dev/null @@ -1,11 +0,0 @@ -.features { - display: flex; - align-items: center; - padding: 2rem 0; - width: 100%; -} - -.featureSvg { - height: 200px; - width: 200px; -} diff --git a/website/docs-marcsync-dev/src/pages/index.js b/website/docs-marcsync-dev/src/pages/index.js index affcd90..e7f7014 100644 --- a/website/docs-marcsync-dev/src/pages/index.js +++ b/website/docs-marcsync-dev/src/pages/index.js @@ -1,41 +1,12 @@ import React from 'react'; -import clsx from 'clsx'; -import Link from '@docusaurus/Link'; -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; -import Layout from '@theme/Layout'; -import HomepageFeatures from '@site/src/components/HomepageFeatures'; -import styles from './index.module.css'; - -function HomepageHeader() { - const {siteConfig} = useDocusaurusContext(); - return ( -
-
-

{siteConfig.title}

-

{siteConfig.tagline}

-
- - Docusaurus Tutorial - 5min ⏱️ - -
-
-
- ); -} export default function Home() { - const {siteConfig} = useDocusaurusContext(); return ( - - -
- -
-
+ ); } diff --git a/website/docs-marcsync-dev/static/img/favicon.ico b/website/docs-marcsync-dev/static/img/favicon.ico index c01d54b..2f48494 100644 Binary files a/website/docs-marcsync-dev/static/img/favicon.ico and b/website/docs-marcsync-dev/static/img/favicon.ico differ diff --git a/website/docs-marcsync-dev/static/img/logo-dark.png b/website/docs-marcsync-dev/static/img/logo-dark.png new file mode 100644 index 0000000..ed6b225 Binary files /dev/null and b/website/docs-marcsync-dev/static/img/logo-dark.png differ diff --git a/website/docs-marcsync-dev/static/img/logo.png b/website/docs-marcsync-dev/static/img/logo.png new file mode 100644 index 0000000..ce36ef9 Binary files /dev/null and b/website/docs-marcsync-dev/static/img/logo.png differ diff --git a/website/docs-marcsync-dev/static/img/logo.svg b/website/docs-marcsync-dev/static/img/logo.svg deleted file mode 100644 index 9db6d0d..0000000 --- a/website/docs-marcsync-dev/static/img/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file